spacy-named-entities
05-09-2022 || 23:59
Tags: #nlp #spacy
spacy-named-entities
Named entities are mainly the entity name of a word. Like for Apple
its Org
.
import spacy
nlp = spacy.load('en_core_web_sm')
doc = nlp('Apple is originated in Uk. The price is currently $1 billion')
for token in doc.ents: # from all the predicted entities
print(ent.text, ent.label_) # print out the named entity label