python - how to find different parts of speech for same word using nltk? -




i have created list of words given text using nltk. according english text, word can of different parts of speech

example: heavens above. (adverb)

the moral code of conduct above civil code of conduct. (preposition)

read sentence given above. (adjective)

our blessings come above. (noun)

when give above input program give adverb, preposition adjective , noun want find differnet pos tagging same word.





wiki

Comments

Popular posts from this blog

elasticsearch - what is the equivalent data type for geo_point in hibernate search? -

firebase - How to wait value in Ionic 2 -

Jenkins: find build number for git commit -