import spacy
nlp = spacy.load("en_core_web_sm")
doc = nlp("Am learning AI/ML from Upgrad")
for token in doc:
print(token.text, token.pos_, token.tag_)
Am AUX VBP
learning VERB VBG
AI PROPN NNP
/ SYM SYM
ML PROPN NNP
from ADP IN
Upgrad PROPN NNP
No comments:
Post a Comment