I am just trying out this API. The current version of Wordnet for Windows is 2.1. When I tried to initialize JWNL for file-backed dictionary with 2.1, I got an few error messages including "unable to install..." and adv.idx not found. I see adv.idx in 2.0 but not in 2.1. Is JWNL only compatible with 2.0?
Also, where is the documentation for the property files?
I am looking forward to using this tool. I think it's a great idea and a great contribution to the open source community.
Did you eventually find you way out of this one? In that case, can you please explain?
It appears that the Windows version of Wordnet 2.1 no longer uses dictionary file names that are different than the MAC / Unix version. This means that the net.didion.jwnl.princeton.file.AbstractPrincetonDictionaryFile class is failing to find the files in the Wordnet 2.1 dict directory.
It can be remedied by removing the " || JWNL.getOS() == JWNL.WINDOWS" clause from the if statement in makeFileName() method.
As a note, the makeFileName method is located in /net/didion/jwnl/princeton/file/AbstractPrinctonDictionaryFile.java
A better fix would be to add a test for the WordNet version, so that it can load all versions:
In net.didion.jwnl.princeton.file.AbstractPrincetonDictionaryFile, line 51:
if (getFileType() == DictionaryFileType.EXCEPTION || JWNL.getOS() == JWNL.WINDOWS)
if (getFileType() == DictionaryFileType.EXCEPTION || (JWNL.getOS() == JWNL.WINDOWS & JWNL.getVersion().getNumber() < 2.1))
Is there another way other than the solutions posted above? If none, then where do i get the source code? i browsed through jwnl 1.3 and only the classes are inside...
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.