How to get Meronyms?

Help
cboont
2004-11-26
2013-04-29
  • cboont
    cboont
    2004-11-26

    Hello,

    I'm trying to find the meronym relation between 'house' and 'kitchen'. If I look in WordNet, these two are having an inhiritated meronym -- kitchen is part of house.

    But when I used JWNL,

    RelationshipList list = RelationshipFinder.getInstance().findRelationships(
                                                    start.getSense(i),
                                                    end.getSense(j),
                                                    PointerType.MEMBER_MERONYM);
    for (Iterator itr = list.iterator(); itr.hasNext();)
    {
       ... code to print the result synset
    }

    I couldn't get the result.

    Now, I tried this with 'bird' and 'wing', I can get the meronym - part_of relation. From WordNet, these two are regular meronym.

    I thought that it could only work for regular meronyms. So, I looked in WordNet and found that 'library' is the regular meronym of 'house'.  But when I used the above code, it could not find the meronym relation between 'house' and 'library'.

    I'm not sure if I use the right classs/methods. Or if there is any exception on merony.

    Thank you for your help in advance.