Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static ILexicalDatabase dm = new NictWordNet();
- private static double compute(String word1, String word2) {
- WS4JConfiguration.getInstance().setMFS(true);
- double s = new WuPalmer(dm).calcRelatednessOfWords(word1, word2);
- return s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement