I have several groups of words, for example in group A: apple, pear, banana, fruit, grape, watermelon; in group B: cat, animal, dog, pig, monkey, duck; in group C: Italy, Australia, country, China, Greece.
How can I automatically identify the hypernyms from these 3 groups (e.g., fruit for group A, animal for group B and country for group C)? Thank you very much.