Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#8 Error in in-memory WordNet database

closed-fixed
John Didion
None
5
2003-02-20
2003-02-20
Lars Rosenhainer
No

Hi,

I'm using JWNL 1.2.1 with WordNet 1.7.1.

There seems to be something wrong with the in-memory
WordNet database. For example,

when I run the following code:

JWNL.initialize(new FileInputStream("D:/WordNet/java-
wordnet/jwnl1.2.1/map_properties.xml"));
Dictionary dict = Dictionary.getInstance();
IndexWord iword = dict.lookupIndexWord
(POS.NOUN, "CD");

the last method returns null.

However, if I do the same by means of a flatfile
dictionary:

JWNL.initialize(new FileInputStream("D:/WordNet/java-
wordnet/jwnl1.2.1/file_properties.xml"));
Dictionary dict = Dictionary.getInstance();
IndexWord iword = dict.lookupIndexWord
(POS.NOUN, "CD");

method lookupIndexWord(...) returns a reference to an
IndexWord object.

This phenomenom occurs independent from the fact
whether I use JWNL, WordNet and serialized WordNet
databases under Windows 2000 or Red Hat Linux 7.3.
Creating the serialized versions of the WordNet
database under these two OSs occured without any
error messages or warnings.

Discussion

  • John Didion
    John Didion
    2003-02-20

    • assigned_to: nobody --> jdidion
     
  • John Didion
    John Didion
    2003-02-20

    • status: open --> closed-fixed