Unable to install net.didion.jwnl.dictionary.FileBackedDictionary

Bug #576909 reported by jon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
RelEx
Won't Fix
Medium
linas

Bug Description

It's my first time to try out relex and im using the version relex-1.2.1. I've already tried using jwnl14-rc2 and jwnl13rc3 but the output is still the same. I believe that this thread https://bugs.launchpad.net/relex/+bug/198873 points out that relex is already compatible with any jwnl version.

Output:
Info: Using default ./data/wordnet/file_properties.xml
Error: Unable to initialize JWNL:net.didion.jwnl.JWNLException: Unable to install net.didion.jwnl.dictionary.FileBackedDictionary
Warning: Unable to initialize WordNet Java API (JWNL).
 Was -Dwordnet.configfile set correctly?
 Does the wordnet.configfile contain the right paths?
 Will use command-line interface; this will negatively impact performance.

What could be the problem I'm facing here?

Revision history for this message
Jim White (james-paul-white) wrote :

The likely problem is explained in the warning message:

"Was -Dwordnet.configfile set correctly?"

"Does the wordnet.configfile contain the right paths?"

Those are things you have to set correctly as detailed in the relex/README file.

Revision history for this message
linas (linasvepstas) wrote :

Were you able to get it to work?

I'd love to be able to automate this, but don't really know how to do this with Java & wordnet

Changed in relex:
status: New → Incomplete
importance: Undecided → Medium
Revision history for this message
jon (tan-yiu) wrote :

Sorry for the late reply, I didn't have access to the internet access for a while.

No I haven't got it working yet, but am still trying to.

In my file_properties.xml I've already tried setting the dictionary path as
absolute: <param name="dictionary_path" value="C:\relex\relex-1.2.1\resource\wordnet\3.0\dict"/>
and afterwards,
relative: <param name="dictionary_path" value="/resource/wordnet/3.0/dict"/>

I'm really not familiar with the -Dwordnet.configfile, is it the same as file_properties.xml?

Thanks in advance.

Revision history for this message
linas (linasvepstas) wrote :

Hi,

The -Dwordnet.configfile flag just tells java to use the file_properties.xml file for the wordnet config file.

Note that the <!-- stuff --> is the way that one comments things out in XML. Make sure that you've commented out the linux stuff, and have made the windows paths visible.

Also, your above comments are confusing: you seem to imply that you installed wordnet under C:\relex\relex-1.2.1\resource ... why would you do that? That seems strange & wrong .. wouldn't wordnet install itself in C:\wordnet or something like that?

Anyway, you might have more luck asking for help on the mailing list, rather than trying to report this as a bug. There are windows users on the mailing list who should be able to help you; I myself know nothing about windows, and usually suggest that people switch to Linux instead, where things "just work" automatically.

Revision history for this message
jon (tan-yiu) wrote :

Thank you for the suggestion, I am familiar with xml and I actually took the resources inside the wordnet folder and transferred it inside relex just in case I need to make some modification for the domain I am working on. Thank you again for your time and your suggestions, I will join the mailing list now.

linas (linasvepstas)
Changed in relex:
assignee: nobody → linas (linasvepstas)
linas (linasvepstas)
Changed in relex:
status: Incomplete → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.