NATURAL LANGUAGE PROCESSING · INTERVIEW QUESTION
How would you evaluate an NER model?
🟢 beginner · NLP
Hint: Focus on the decision rule, assumptions, and failure mode behind nlp.
Answer
Use entity-level precision, recall, and F1 with exact span and type matching. Also inspect partial matches, rare entity types, and domain-specific errors.
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. If 95% of tokens are outside entities, an all-outside predictor achieves 95% token accuracy and zero entity recall.
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.