find the link between two words by using wordnet
Hi,
I need to search the relation between two words, this is find what type of connection (hyperonim, hyponim,...) exists between both them. what I was doing until now was to get the direct hyperonims, hyponims of one of those words and search the other word in these lists. But I need to know if those words are relationed in certain way (although not with a direct link), but I cannot load all of those list (searching first the direct hyperonims, then the hypernonims of those hypernonims...) in memory because is too slow (and my program is already too heavy to run). I was wondering if there was a method to do something like this:
oneWord.findRelation(theOtherWord) and get something like this: hyperonim (indicating the first word is a hyperonim of the second one)
thank you in advance and sorry for my poor English