wordnet dictionaries in Mac

Help
2007-10-24
2013-04-29
  • Vanessa Lopez
    Vanessa Lopez
    2007-10-24

    Hello, I was happily using jwnl in windows with WordNet 2.0, but for it to work in my Mac I had to copy some dictionary files from the WordNet 2.1 (i.e. java.io.FileNotFoundException: ./wordnet/2.0/dict/index.adv (No such file or directory)).. However now I have a null pointer exception in:

    public RelationshipList demonstrateAsymmetricRelationshipOperation(IndexWord start, IndexWord end,
                int sensestart, int senseend) throws Exception {
           
            // Try to find a relationship between the first sense of <var>start</var> and the first sense of <var>end</var>
            RelationshipList list = RelationshipFinder.getInstance().findRelationships(start.getSense(sensestart), end.getSense(senseend), PointerType.HYPERNYM);
            return list;
        }
    Exception in thread "main" java.lang.NullPointerException
            at net.didion.jwnl.data.PointerTarget.getPointers(PointerTarget.java:39)

    PLEASE HELP ME!!!

    Vanessa.