A user tries to find out POS tags using Spacy but after running the script, it returns number instead of POS tags. How to fix that? Following is the script

653    Asked by in Data Science , Asked on Nov 5, 2019
Answered by Nitin Solanki

The output here is the following


Here, in the script the issue is with the command for calling the proper tags. In this case word.pos is run which will return a number instead of tags. To get a proper tag, word.pos_ is used. For such implementation, it should look like



Your Answer

Interviews

Parent Categories