Abstract
The challenges of Named Entities Recognition (NER) for tweets lie in the insufficient information in a tweet and the unavailability of training data. We propose to combine a K-Nearest Neighbors (KNN) classifier with a linear Conditional Random Fields (CRF) model under a semi-supervised learning framework to tackle these challenges. The KNN based classifier conducts pre-labeling to collect global coarse evidence across tweets while the CRF model conducts sequential labeling to capture fine-grained information encoded in a tweet. The semi-supervised learning plus the gazetteers alleviate the lack of training data. Extensive experiments show the advantages of our method over the baselines as well as the effectiveness of KNN and semi-supervised learning.
Introduction
Named Entity Recognition (NER) is a fundamental task in Natural Language Processing, identifying entities such as persons, locations, and organizations. While performance on formal text like news articles often exceeds 90% F1, performance on social media platforms like Twitter is significantly lower, often dropping below 50%. This degradation is primarily due to the brevity of tweets (limited context) and the high degree of noise, including slang, abbreviations, and inconsistent capitalization. Standard NLP tools like Part-of-Speech (POS) taggers, which NER models rely on, also see a significant drop in accuracy on Twitter data, falling from high-90s to approximately 74%.
Methodology
To address these challenges, we propose a hybrid system that integrates global and local information within a semi-supervised framework.
Hybrid KNN-CRF Architecture
Our approach utilizes a two-stage labeling process to bridge the gap between global patterns and local context:
- Global Evidence (KNN): A K-Nearest Neighbors classifier identifies similar word instances across the entire dataset to provide "global coarse evidence." This helps the model understand how a word is used broadly, compensating for the lack of context in a single tweet.
- Local Context (CRF): A linear Conditional Random Fields model performs sequential labeling using the BILOU schema. The output from the KNN stage is treated as a visible variable for the CRF, allowing it to integrate global consensus with local grammatical features.
Semi-Supervised Learning
To mitigate the scarcity of labeled Twitter data, we employ a semi-supervised bootstrapping framework. The system iteratively labels unlabeled tweets and incorporates the most confident predictions back into the training set to retrain the models. This process is further supported by the use of 30 external gazetteers to provide baseline world knowledge.
Experimental Results
We evaluated our system on a manually annotated dataset of 12,245 tweets, focusing on four entity types: Person, Location, Organization, and Product. The proposed hybrid model ($NER_{CB}$) was compared against a baseline CRF ($NER_{BA}$) and a dictionary-based system ($NER_{DIC}$).
Performance Comparison
As shown in the table below, the hybrid model consistently outperforms the baselines across all metrics.
The $NER_{CB}$ system achieved an F1 score of 80.2%, representing a significant improvement over the baseline CRF (75.4%). The integration of KNN provided a 4.8% boost, while the semi-supervised learning component contributed an additional 3.5% to the final performance.
Discussion and Conclusion
Error analysis revealed that slang and abbreviations (35.5%) and data sparseness (37.2%) remain the primary obstacles to perfect NER performance on Twitter. Noise in the form of extreme grammatical errors contributes to the remaining 27.3%. Future research will focus on tweet normalization—automatically converting informal slang into standard English—to further enhance model robustness. In conclusion, combining global coarse evidence with local sequential labeling under a semi-supervised framework provides a powerful solution for entity recognition in noisy, short-text environments.
Summary updated