Introduction
Named Entity Recognition (NER)—the task of identifying and classifying names, locations, and organizations in text—is a foundational component of modern Natural Language Processing (NLP). While state-of-the-art models perform exceptionally well on high-resource languages like English, they are notoriously data-hungry, requiring massive amounts of hand-annotated text. This creates a significant barrier for thousands of low-resource languages and niche domains where manual labeling is prohibitively expensive and slow.
"Distant supervision" offers a potential shortcut by using existing dictionaries (gazetteers) to automatically tag entities in raw text. However, finding comprehensive dictionaries for low-resource languages is difficult, and simple string matching often introduces significant noise (e.g., mistaking the month "May" for a person's name). To address these challenges, we present ANEA, a tool designed to jumpstart NER for low-resource scenarios by leveraging Wikidata and providing an interactive interface for rule-based tuning.
The ANEA Framework
ANEA manages the entire distant supervision pipeline through three primary stages:
- Extraction: The tool queries Wikidata—a massive, multilingual knowledge base containing over 90 million items—to automatically generate entity lists for specific categories (e.g., "films" or "cities") in the target language. This removes the need for users to write complex SPARQL queries.
- Annotation: Using a "longest-match" algorithm, ANEA labels raw, unlabeled text. For instance, if "United Arab Emirates" is in the extracted list, the system ensures the entire phrase is captured rather than mistakenly labeling only "United" as a separate entity.
- Interactive Tuning: The core innovation of ANEA is its user interface, which allows users to adjust global "annotation settings" rather than fixing individual labels. Users can enable lemmatization to catch various grammatical forms, filter out common false positives (like the city "Of"), or set priorities when entity types overlap.
Experimental Setup
To evaluate ANEA's versatility, it was tested across six diverse scenarios:
- English (En): Standard CoNLL03 data and a version with granular location labels.
- Spanish (Es): A niche domain dataset focused on "movie" entities.
- Yoruba (Yo): A major West African language.
- Estonian (Et) and West Frisian (Fy): Two European low-resource languages.
In each case, a tiny "seed" of only 1,500 labeled tokens (representing approximately two hours of work) was used to guide the tuning process.
Key Results and Insights
ANEA consistently outperformed standard baselines, such as Conditional Random Fields (CRF) and basic Neural Networks (NN), in low-resource settings. On average, models trained on ANEA-supervised data saw an F1-score increase of 18 points.
One of the most significant findings was that 30 minutes of adjusting matching rules (e.g., "ignore words shorter than 4 characters for Person names") was far more effective than spending that same time hand-labeling more data. In morphologically rich languages like Estonian, linguistic features like lemmatization proved critical; enabling this setting allowed the tool to match different grammatical cases of the same city name, drastically improving recall.
Discussion and Future Work
While ANEA provides a powerful boost for low-resource NER, some challenges remain. "Organization" entities are particularly difficult to extract because the category is broad and fragmented in Wikidata. Additionally, distant supervision still struggles with polysemy—words with multiple meanings where a city name might also be a common verb.
Future iterations of the tool aim to integrate Active Learning, allowing the model to identify specific tokens it is most uncertain about for targeted user feedback. Furthermore, implementing advanced label noise handling could further enhance the performance of models trained on ANEA’s automatically generated output.
Summary updated