Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

spacy ner

import spacy 
nlp = spacy.load("en_core_web_sm")

doc = nlp("NASA awarded Elon Musk’s SpaceX a $2.9 billion contract to build the lunar lander.")
for ent in doc.ents:
    print(ent.text,  ent.label_)
Source by machinelearningknowledge.ai #
 
PREVIOUS NEXT
Tagged: #spacy #ner
ADD COMMENT
Topic
Name
1+3 =