October 2018
Intermediate to advanced
472 pages
10h 57m
English
Finally, there's NER. Named entities are the proper nouns of sentences. Computers have gotten pretty good at figuring out if they're in a sentence and at classifying what type of entity they are. spacy handles NER at the document level, since the name of an entity can span several tokens:
doc = nlp(u"My name is Jack and I live in India.")entity_types = ((ent.text, ent.label_) for ent in doc.ents)print(tabulate(entity_types, headers=['Entity', 'Entity Type']))Output:Entity Entity Type -------- ------------- Jack PERSON India GPE
So, we just saw some of the basic building blocks of the NLP pipeline. These pipelines are consistently used in various NLP projects, be it in machine learning or in the deep learning space.
Read now
Unlock full access