After running the above script, he gets NN,JJ,VB,RB as output. How do to change these to WordNet compatible tags?

928    Asked by NikitaGavde in Data Science , Asked on Nov 4, 2019
Answered by Nikita Gavde

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’


Your Answer

Interviews

Parent Categories