POS-tagging in SpaCy

Report a typo

Your friend made a code that helps obtain POS-tag for each word in any sentence. Unfortunately, the lines are skewed. Put them in the right order.

Put the items in the correct order
en_sm_model = spacy.load("en_core_web_sm")
for i in doc:
print(i.pos_)
doc = en_sm_model("Do you want to sleep?")
import spacy
___

Create a free account to access the full topic