Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#11 null pointer exception in RelationshipFinder.findrelationshi

closed
nobody
None
5
2009-02-16
2005-02-22
Anonymous
No

Hi, there,

Got a problem with relationshipfinder, anyone can help?

try to find Hypernym relationship between synsets of
two words,
when there is no relationship, the program gave me
null pointer exception. my code is as the following:

RelationshipFinder finder = RelationshipFinder.getInstance
();
RelationshipList list = finder.findRelationships
(synsetSource,synsetTarget,PointerType.HYPERNYM);

synsetSource and synsetTarget are type of Synset
I'v tested all arguments in findRelationship are not null.

So when there is no relationships between two synset,
what wil be returned by the method findRelationship?

Thanks for any respons.

zsx

Discussion

  • Brett Walenz
    Brett Walenz
    2009-02-16

    • status: open --> closed
     
  • Brett Walenz
    Brett Walenz
    2009-02-16

    Another really old request, closing to be thorough... this was tested under JWNL 1.4 RC2 and worked.