Calculate Words Similarity Using Wordnet in Java

This is my note of using WS4J calculate word similarity in Java. Step 1: Download Jars Download the following two jars and add them to your project library path. jawjaw-1.0.2.jar – https://code.google.com/p/jawjaw/downloads/list ws4j-1.0.1.jar – https://code.google.com/p/ws4j/downloads/list Step 2: Play With the Demo Program Code: package NLP;   import edu.cmu.lti.lexical_db.ILexicalDatabase; import edu.cmu.lti.lexical_db.NictWordNet; import edu.cmu.lti.ws4j.RelatednessCalculator; import edu.cmu.lti.ws4j.impl.HirstStOnge; import … Read more