Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. private static ILexicalDatabase dm = new NictWordNet();
  2. private static double compute(String word1, String word2) {
  3. WS4JConfiguration.getInstance().setMFS(true);
  4. double s = new WuPalmer(dm).calcRelatednessOfWords(word1, word2);
  5. return s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement