Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

WordNet in Java

902220Nov 25 2011 — edited Nov 26 2011
Hello all,

I was wondering if anyone had any experience with connecting to WordNet in Java.

I have downloaded both JWNL (http://jwordnet.sourceforge.net/) and JWI (http://projects.csail.mit.edu/jwi/), but am yet to get either set up correctly.

Out of the 2, I would prefer to use JWNL as the Relationship and RelationshipFinder may prove useful.

Online set-up tutorials don't seem to offer much in the way of advice, rather than commands which throw errors . One such command is
java -cp jwnl.jar;utilities.jar;commons-logging.jar net.didion.jwnl.utilities.DictionaryToDatabase .\include\file-properties.xml .\WordNet\3.0\sense.index .\include\create.sql com.mysql.jdbc.Driver jdbc:mysql://localhost/jwnl?user=jwnl&password=jwnl"

where jwnl.jar, utilities.jar and commons-logging.jar are the jar files used within the program,
net.didion.jwnl.utilities.DictionaryToDatabase is the database for the WordNet dictionary to be downloaded to
.\include\file-properties.xml is the properties file
.\WordNet\3.0\sense.index is the dictionary location
.\include\create.sql is the command to store the dictionary in the database
com.mysql.jdbc.Driver is the driver
and jdbc:mysql://localhost/jwnl?user=jwnl&password=jwnl is the URL, username and password

when executed, this command throws a ClassNotFound exception for the DictionaryToDatabase class

As said, if anyone can offer advice on how to set up and WordNet connection I should be able to work out the rest on my own, I would be extremely grateful :)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 24 2011
Added on Nov 25 2011
2 comments
955 views