ExamplesTest not Working with DatabaseBacked

Help
NUNO SECO
2008-12-24
2013-04-29
  • NUNO SECO
    NUNO SECO
    2008-12-24

    Hi.

    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.

    --
    Nuno Seco