Skip to content

CogComp/jwnl-prime

Repository files navigation

JWNL' (JWNL-prime)

Build Status

This is the refactored version of JWNL (from version jwnl14-rc2).

The major reason for this refactoring was to make JWNL (and WordNet) a self-contained maven dependency, without the need to define configuration or the need to download the WN.

Now you can just add it as a maven dependency:

<repositories>
     <repository>
         <id>CogcompSoftware</id>
         <name>CogcompSoftware</name>
         <url>http://cogcomp.org/m2repo/</url>
     </repository>
</repositories>
<dependencies>
    <dependency>
     <groupId>edu.illinois.cs.cogcomp</groupId>
     <artifactId>jwnl-prime</artifactId>
     <version>1.0.3</version>
    </dependency>
 </dependencies>

And start loading the application (without the need to download WordNet or add any config files):

JWNL.initialize();
...

Instead of doing this (the old way):

InputStream stream = ClassLoader.getSystemResourceAsStream(propsFile);
JWNL.initialize(stream);
...

All other functionalities are untouched.

If you want to see what kind of stuff can be done with WN, checkout this exampe file!

Happy WordNet-ing! :)