NATURAL LANGUAGE PROCESSING Β· INTERVIEW QUESTION
What is named entity recognition?
π’ beginner Β· NLP
Hint: Focus on the decision rule, assumptions, and failure mode behind nlp.
Answer
NER identifies spans such as people, organizations, locations, dates, and products. Challenges include ambiguous boundaries, nested entities, and domain-specific labels.
Interview reasoning
NER assigns types to spans, such as a company or date. Exact span-and-type F1 differs from token accuracy and exposes boundary errors.
NER identifies typed spans, not merely individual correct tokens. An exact match needs the right type and both boundaries; token accuracy is often dominated by outside labels. State how nested entities, partial overlaps and empty documents are handled so the reported metrics correspond to the annotation task.
Worked example. 'New York University' should be one organization span rather than three independent correct words.
Validation
Report per-type strict F1, partial overlap only under a declared policy, and document-held-out quality.
Report entity precision, recall and F1 by type and span length; inspect boundary versus type errors and subword alignment.
Common pitfalls
Background tokens and repeated entities can inflate an apparently strong result.
Micro averages can hide rare types. Calling partial overlap an exact success changes the meaning of the benchmark.
Likely follow-up: Report per-type strict F1, partial overlap only under a declared policy, and document-held-out quality.