(I mistakenly posted this under Open Discussion a few minutes ago. Sorry for the double post.)
I am a new JWNL user. I have managed to get JWNL working using a file-backed dictionary. Now I want to move to a map-backed dictionary, but have run into problems.
On Windows XP, I used DictionaryToMap to build the map-based dictionary files. I then tried to start up JWNL with jwnl_map_properties.xml, and it failed while trying to read the noun index.
Digging into it, I see that the actual exception is a java.io.EOFException, which happens when MapBackedDIctionary.loadDictFile() calls PrincetonObjectDictionaryFile.readObject(). So the dictionary file is corrupt.
Does anyone have clear instructions on how to build the map-backed dictionary files?
Alternatively, if anyone has successfully built the map-backed dictionary files, would it be ok to post them online so that we don't all have to go through this build process?
I found a quick and easy solution to this problem, which is to read the Wordnet files myself instead of using JWNL.
The source code is at http://blog.surfcanyon.com/2008/07/21/fast-easy-wordnet-java
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.