Hi all,
I have a question. If you are exprienced about this problem, pls help me.
+ First, finding the relations of two words:
Given two words, the code is to find the relations between them(or compute the semantic/lexical similarity). These relations such as "kind-of"(hypernym, hyponym for nouns and hypernymy and troponymy for verbs) and "part-of" (holonymy and meronymy for nouns) or equivalence(synonym).
Example:
"tree" is a kind of "plant", "tree" is hyponym
of "plant" and "plant" is hypernym of "tree". Analogously from "trunk" is a part of "tree" we have that trunk is meronym of "tree" and "tree" is holonym of "trunk". otherwise, "car" is synonym of "auto".
As Troy has wroted to me, in his example "if you enter 'car' and 'wheel' you would like 'meronym' to be one of the types listed", the code may result a list of relations.
a hour ago, I 've coded a searcher for searching the connection between two words. In order to reduce the computational time, I have putted two restrictions, the first one is that only synonym relation is considered(used the lexical class of Jeff), and the second one is to limit the length of the searching path.
+ Second, finding the relations of words in a short phrase:
Since each searching word may have more than one senses, so we can disambiguate words in short phrases. (My friend told me the lesk algorithm can be used to solve this problem, but i've never read it).
For example, the word pine has 2 senses:
sense 1: kind of evergreen tree with needle–shaped leaves
sense 2: waste away through sorrow or illness.
the word "cone" has 3 senses:
sense 1: solid body which narrows to a point
sense 2: something of this shape whether solid or hollow
sense 3: fruit of certain evergreen tree
By comparing each of the two senses of the word "pine" with each of the three senses of the word "cone", it is found that the words "evergreen tree" occurs in one sense each of the two words. So these two senses are then declared to be the most appropriate senses when the words "pine" and "cone" are used together. This inference may help to reduce the complexity.
Have you coded something like this ? Now i am thinking about this problem in order to experiment an application that could semi-auto make matchings between xml schema.
Thank you.
