Introduction
Part-of-speech (POS) tagging is a cornerstone of Natural Language Processing (NLP), involving the assignment of grammatical categories to words in a sequence. While Hidden Markov Models (HMMs) have long been a standard approach, traditional implementations often rely on first-order (bigram) approximations. Even higher-order "trigram" models typically restrict second-order logic to contextual tag transitions, neglecting the lexical emission probabilities due to the "sparse data problem." This paper presents a "full" second-order HMM that incorporates second-order dependencies for both context and lexicon, supported by a robust frequency-based smoothing technique.
Methodology
The proposed model extends the standard HMM framework through four primary innovations:
- Full Second-Order Architecture: The model calculates the probability of a word based on the current tag and the preceding tag. Similarly, tag transitions are modeled depending on the two previous tags.
- Variable Weighting Smoothing: To address data sparsity, a novel smoothing method uses coefficients derived from the log-counts of occurrences. This allows the model to dynamically "back off" from trigram to bigram or unigram estimates when data is scarce.
- Suffix-Based Unknown Word Handling: For words not present in the training lexicon, the model employs a suffix predictor (lengths 1–4) using a voting technique to estimate the most likely POS tag based on morphological endings.
- Modified Viterbi Algorithm: The decoding process is adapted for the second-order state space. While the complexity increases to $O(NT^3)$, it remains computationally feasible for standard NLP tasks.
Experimental Setup
The model was evaluated using 10-fold cross-validation on two benchmark datasets: the Brown Corpus and the Wall Street Journal (WSJ) Corpus. Performance was measured across "Known," "Unknown," and "Overall" word categories to assess the impact of the full second-order logic and the suffix-based handling of out-of-vocabulary terms.
Results and Discussion
The full second-order HMM demonstrated superior performance over standard bigram and partial trigram baselines. On the WSJ corpus, the model achieved an overall accuracy of 96.86%, representing the state-of-the-art for statistical taggers at the time.
A critical finding was the significance of lexical trigrams. By modeling the relationship between a word and its tag in the context of the preceding tag, the system captured nuances that first-order models miss (e.g., disambiguating "record" as a noun vs. verb based on the preceding word's tag). This architectural shift led to substantial error reductions across both corpora.
As shown in Table 2, the full second-order model reduced errors by approximately 16% compared to standard bigram models and over 9% compared to models using only lexical trigrams. The model's ability to handle unknown words also improved, reaching approximately 84.9% accuracy on the WSJ set.
Conclusion
This research validates the utility of a full second-order HMM for POS tagging. By effectively managing the sparse data problem through log-based smoothing, the model achieves high accuracy on standard benchmarks. While performance on unknown words remains an area for improvement, the integration of second-order lexical dependencies marks a significant advancement in statistical language modeling.
Summary updated