0
0
NLPml~20 mins

Entity types (PERSON, ORG, LOC, DATE) in NLP - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
πŸŽ–οΈ
Entity Type Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Understanding Entity Types in Named Entity Recognition
Which of the following best describes the entity type ORG in Named Entity Recognition (NER)?
AA person’s name such as 'Alice' or 'Dr. Smith'.
BA location such as 'Paris' or 'Mount Everest'.
CA date or time expression such as 'January 1, 2020'.
DAn organization such as 'Google' or 'United Nations'.
Attempts:
2 left
πŸ’‘ Hint
Think about what kind of real-world entities organizations represent.
❓ Predict Output
intermediate
2:00remaining
Output of NER Entity Extraction
Given the sentence: 'Apple was founded by Steve Jobs in California in 1976.' What entities will be recognized with their correct types?
NLP
sentence = 'Apple was founded by Steve Jobs in California in 1976.'
# Assume a perfect NER model output
entities = [
  ('Apple', 'ORG'),
  ('Steve Jobs', 'PERSON'),
  ('California', 'LOC'),
  ('1976', 'DATE')
]
print(entities)
A[('Apple', 'PERSON'), ('Steve Jobs', 'ORG'), ('California', 'LOC'), ('1976', 'DATE')]
B[('Apple', 'LOC'), ('Steve Jobs', 'PERSON'), ('California', 'ORG'), ('1976', 'DATE')]
C[('Apple', 'ORG'), ('Steve Jobs', 'PERSON'), ('California', 'LOC'), ('1976', 'DATE')]
D[('Apple', 'ORG'), ('Steve Jobs', 'PERSON'), ('California', 'DATE'), ('1976', 'LOC')]
Attempts:
2 left
πŸ’‘ Hint
Think about what each entity represents in real life.
❓ Model Choice
advanced
1:30remaining
Choosing the Best Model for Entity Type Recognition
You want to build a system that identifies PERSON, ORG, LOC, and DATE entities in news articles. Which model type is best suited for this task?
AA linear regression model predicting numeric values.
BA recurrent neural network (RNN) or transformer-based model trained on labeled text data.
CA clustering algorithm like K-means on raw text.
DA convolutional neural network (CNN) trained on image data.
Attempts:
2 left
πŸ’‘ Hint
Think about models designed for sequence and language understanding.
❓ Metrics
advanced
1:30remaining
Evaluating NER Model Performance
You have a NER model that predicts entity types PERSON, ORG, LOC, and DATE. Which metric best measures how well the model correctly identifies these entities?
APrecision, Recall, and F1-score for each entity type
BAccuracy of predicting the next word
CMean Squared Error (MSE)
DR-squared value
Attempts:
2 left
πŸ’‘ Hint
Think about metrics used for classification tasks with multiple classes.
πŸ”§ Debug
expert
2:00remaining
Debugging Incorrect Entity Type Predictions
A NER model often labels 'Amazon' as a LOCATION instead of an ORGANIZATION. What is the most likely cause?
AThe training data lacks enough examples of 'Amazon' as an organization.
BThe model architecture is a CNN instead of an RNN.
CThe input text is too short for the model to understand context.
DThe model uses precision instead of recall as a metric.
Attempts:
2 left
πŸ’‘ Hint
Think about how the model learns entity meanings from examples.