I'm using the DatabaseBackedDictionary. I've imported WordNet into an H2 DataBase Instance.
All tests work, except for:
IndexWord iw = Dictionary.getInstance().lookupIndexWord(POS.VERB, "running-away");
which returns null.
Using the FileBackedDictionary all works fine.
Another issue is that the sql scripts that are given to create the database create a 'SynsetException' table, but it seems to me that the code expects a table named 'Exception'. After overcoming that error by creating a view:
CREATE VIEW Exception AS select EXCEPTION_ID, POS, S_EXCEPTION as EXCEPTION, LEMMA from SYNSETEXCEPTION;
I am now stuck on the "running-away" test. I suspect a null is always returned if compound words are used (which is not the case with the FileBackedDictionary).
Any help would be much appreciated.
I fixed this in my fork at http://extjwnl.sourceforge.net/
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.