daily pastebin goal
8%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top