After running the above script, he gets NN,JJ,VB,RB as output. How do to change these to WordNet compatible tags?
We need to import POS tagger from nltk and define a function to return the base word using WordNet Lemmatizer. The following script will do that
We can use the return value with the lemmatizer
The output is returned as ‘go’ for the word ‘going’