0
0
NLPml~20 mins

Entity linking concept in NLP - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Entity Linking Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
What is the main goal of entity linking?

Entity linking is a key task in natural language processing. What is its main goal?

ATo identify and connect mentions in text to their corresponding entries in a knowledge base
BTo translate text from one language to another
CTo summarize long documents into short paragraphs
DTo detect the sentiment expressed in a sentence
Attempts:
2 left
💡 Hint

Think about how computers understand specific names or terms in text by linking them to known information.

Model Choice
intermediate
1:30remaining
Which model type is best suited for entity linking?

Given a text with ambiguous mentions, which model type is most appropriate to perform entity linking?

ASequence labeling model that tags each word with entity types
BClustering model that groups similar documents
CGenerative model that creates new text summaries
DClassification model that assigns each mention to a candidate entity from a knowledge base
Attempts:
2 left
💡 Hint

Entity linking requires choosing the correct entity from many candidates for each mention.

Metrics
advanced
2:00remaining
Which metric best evaluates entity linking accuracy?

When evaluating an entity linking system, which metric best measures how well the system links mentions to the correct entities?

AMean Squared Error measuring numeric prediction error
BBLEU score measuring text similarity
CPrecision, Recall, and F1 score on correctly linked entities
DPerplexity measuring language model uncertainty
Attempts:
2 left
💡 Hint

Think about metrics that measure correct matches between predicted and true entities.

🔧 Debug
advanced
2:00remaining
Why does this entity linking model confuse 'Apple' the company with 'apple' the fruit?

A model links the word 'Apple' in a sentence to the fruit entity instead of the company. What is the most likely cause?

AThe model ignores context words around the mention
BThe model uses case-sensitive matching correctly
CThe knowledge base lacks the fruit entity
DThe model uses a language translation step before linking
Attempts:
2 left
💡 Hint

Consider how context helps distinguish meanings of ambiguous words.

Predict Output
expert
1:30remaining
What is the output of this entity linking candidate ranking code?

Given the code below that ranks candidate entities by similarity scores, what is the printed output?

NLP
candidates = ['EntityA', 'EntityB', 'EntityC']
scores = [0.75, 0.85, 0.65]
ranked = sorted(zip(candidates, scores), key=lambda x: x[1], reverse=True)
print(ranked[0][0])
AEntityA
BEntityB
CEntityC
D['EntityB', 0.85]
Attempts:
2 left
💡 Hint

Look at which candidate has the highest score after sorting.