#5 fix for loading Linux WN version

open
nobody
None
5
2011-01-08
2011-01-08
Tomas Kliegr
No

JWNL 1.4 RC2 expects the file index.sense to be named sense.idx on for pre 2.1 versions of Wordnet. At least for Unix WN versions WN2.0 and WN 1.7, the file is named index.sense, which causes a FileNotFound exception.

To fix the problem, in FileManagerImpl.java comment out lines 74 - 77,
/*
if (JWNL.getVersion().getNumber() < 2.1) {
sense = System.getProperty("file.separator") + "sense.idx";
}
*/
and recompile. This patch may cause problems with Windows, because the commented-out if probably had some purpose.

Discussion

  • Tomas Kliegr
    Tomas Kliegr
    2011-01-08

    patched file

     
    Attachments