Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(String author : this.authors) {
- LanguageModelInterface lm = new LaplaceLanguageModel();
- NgramCountsInterface ngramCounts = new NgramCounts();
- ngramCounts.readNgramCountsFile(this.configLangModels.getNgramCountPath(author).toArray(new String[0])[0]);
- lm.setNgramCounts(ngramCounts, this.vocabularyLM);
- Map<String, LanguageModelInterface> map = new HashMap<>();
- map.put(author + " bi", lm);
- authorLangModelsMap.put(author, map);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement