Advertisement
Guest User

Untitled

a guest
Jan 18th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. for(String author : this.authors) {
  2. LanguageModelInterface lm = new LaplaceLanguageModel();
  3. NgramCountsInterface ngramCounts = new NgramCounts();
  4. ngramCounts.readNgramCountsFile(this.configLangModels.getNgramCountPath(author).toArray(new String[0])[0]);
  5. lm.setNgramCounts(ngramCounts, this.vocabularyLM);
  6. Map<String, LanguageModelInterface> map = new HashMap<>();
  7. map.put(author + " bi", lm);
  8. authorLangModelsMap.put(author, map);
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement