I want to get "hypernyms"of multiple words using WordNet dictionary in java.
**What is Hypernyms?**a word with a broad meaning constituting a category into which words with more specific meanings fall; a superordinate. For example, colour is a hypernym of red.
So if we have following words
1) apple
2) banana
3) hepatitis
4) tree
5) mango
the desire output is that Sense 1:
Apple: -- (fruit with red or yellow or green skin and sweet to tart crisp whitish flesh)
=> edible fruit -- (edible reproductive body of a seed plant especially one having sweet flesh)
=> produce, green goods, green groceries, garden truck -- (fresh fruits and vegetable grown for the market)
=> food, solid food -- (any solid substance (as opposed to liquid) that is used as a source of nourishment; "food and drink")
=> solid -- (a substance that is solid at room temperature and pressure)
=> substance, matter -- (that which has mass and occupies space; "an atom is the smallest indivisible unit of matter")
=> physical entity -- (an entity that has physical existence)
=> entity -- (that which is perceived or known or inferred to have its own distinct existence (living or nonliving))
=> fruit -- (the ripened reproductive body of a seed plant)
=> reproductive structure -- (the parts of a plant involved in its reproduction)
=> plant organ -- (a functional and structural unit of a plant or fungus)
=> plant part, plant structure -- (any part of a plant or fungus)
=> natural object -- (an object occurring naturally; not made by man)
=> whole, unit -- (an assemblage of parts that is regarded as a single entity; "how big is that part compared to the whole?"; "the team is a unit")
=> object, physical object -- (a tangible and visible entity; an entity that can cast a shadow; "it was full of rackets, balls and other objects")
=> physical entity -- (an entity that has physical existence)
=> entity -- (that which is perceived or known or inferred to have its own distinct existence (living or nonliving))
=> pome, false fruit -- (a fleshy fruit (apple or pear or related fruits) having seed chambers and an outer fleshy part)
=> fruit -- (the ripened reproductive body of a seed plant)
=> reproductive structure -- (the parts of a plant involved in its reproduction)
=> plant organ -- (a functional and structural unit of a plant or fungus)
=> plant part, plant structure -- (any part of a plant or fungus)
=> natural object -- (an object occurring naturally; not made by man)
=> whole, unit -- (an assemblage of parts that is regarded as a single entity; "how big is that part compared to the whole?"; "the team is a unit")
=> object, physical object -- (a tangible and visible entity; an entity that can cast a shadow; "it was full of rackets, balls and other objects")
=> physical entity -- (an entity that has physical existence)
=> entity -- (that which is perceived or known or inferred to have its own distinct existence (living or nonliving))