throw new IllegalStateException(
"The expected configuration values for data paths have not been found.");
}
log.info("Loading vocabulary from path: " + vocabDir);
List<String> tokenIndexList = new BnsVocabularyLoader(new HDFSVocabLoaderFactory<Double>())
.loadFromText(conf, vocabDir, new BnsVocabLineParser());
int vocabCardinality = tokenIndexList.size();
log.info("The vocab file has been loaded successfully with " + vocabCardinality
+ " entries.");