0
0
NLPml~5 mins

NER with spaCy in NLP - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does NER stand for in spaCy?
NER stands for Named Entity Recognition. It means finding names of people, places, dates, and other important things in text.
Click to reveal answer
beginner
How does spaCy represent entities found in text?
spaCy uses the Doc.ents attribute to list all entities found in the text. Each entity has a label like PERSON, ORG, or DATE.
Click to reveal answer
beginner
What is the purpose of the nlp object in spaCy?
The nlp object is the main tool that processes text. It breaks text into words, finds entities, and adds other language features.
Click to reveal answer
intermediate
How can you add a new entity label to spaCy's NER model?
You can add a new entity label by updating the NER pipeline component and training the model with examples that include the new label.
Click to reveal answer
beginner
What is the role of training data in improving spaCy's NER model?
Training data with examples of text and correct entity labels helps spaCy learn to recognize entities better and improve accuracy.
Click to reveal answer
Which spaCy attribute gives you the entities found in a text?
ADoc.ents
BDoc.tokens
CDoc.text
DDoc.sents
What type of information does NER extract from text?
ASentiment scores
BTopic categories
CParts of speech tags
DNamed entities like people, places, and dates
How do you process text with spaCy to find entities?
APass text to the <code>nlp</code> object
BCall <code>Doc.ents</code> directly on raw text
CUse <code>nlp.entities()</code> function
DUse <code>nlp.tokenize()</code> only
Which of these is NOT a common entity label in spaCy?
AORG
BCOLOR
CPERSON
DDATE
What do you need to improve spaCy's NER model for a new entity type?
AAdding more stop words
BOnly changing the model code
CTraining data with examples of the new entity
DIncreasing the text length
Explain how spaCy's NER pipeline works to find entities in text.
Think about how text flows through spaCy and how entities are marked.
You got /4 concepts.
    Describe the steps to add a new custom entity label to spaCy's NER model.
    Focus on data preparation and model training.
    You got /4 concepts.