Named entity recognition (NER)
Finding spans of text that name entities and assigning types such as place, person or instrument.
Published · Updated
Where does the place name end in “North Sea surface temperature”? If a tagger highlights the entire phrase, it’s found the right patch of ocean and accidentally taken the thermometer reading with it.
Score the boundary as well as the label
Decide whether the correct span is exactly “North Sea” and how partial overlap will count. A short annotation guide with abbreviations and borderline cases makes disagreements worth discussing. For nested names, spell out whether your task accepts both levels.
A research database might rely on instruments as well as places. Score them separately. Hundreds of easy place names can give a cheerful overall result while the instrument column quietly falls apart.
Named entity recognition identifies the words in a name and the kind of thing they name. Linking a mention to one particular database record is a further step. Separating the jobs helps locate an error before it travels into a structured dataset.
A tagged span can be a place, instrument, organization, material or other entity defined by the project. “Mercury” is a useful stress test. It might name an element, a planet or part of an instrument’s name. Context and the annotation policy decide what belongs in the output.
Different systems use dictionaries, statistical sequence models or learned representations. A domain-specific vocabulary can help with uncommon names, while an independent labelled sample tells you how the system handles the texts you actually own. A collection of instrument manuals and a batch of newspaper articles will exercise different boundaries.
Try tracing one downstream count to its spans. If two mentions refer to the same instrument under different names, recognition has found two spans. Deciding whether they should count as one device is entity linking or deduplication and needs a separate rule. spaCy documentation on named entities
Related terms: Zero-Shot Classification, Topic Modeling
Related guide: Social Science
