I am using stanford parser for POS tagging and I wand to get separate synset for noun, adjective verb, adverb from the tagging that tagger has done. e.g.
if my input query is
"Ganga is India's biggest river and people used to consider it as a God"
Output of tagger is:
"Ganga/NNP is/VBZ India/NNP 's/POS biggest/JJS river/NN and/CC people/NNS used/VBN to/TO consider/VB it/PRP as/IN a/DT God/NNP"
From this I want to separate nouns,verbs, adverbs and adjectives and want to get corrosponding synsets separately.
How can I do this using JAVA programming?