Abstract
Natural language processing (NLP) disambiguation tasks often rely on rigid, fixed-window features that fail to capture complex linguistic contexts. This paper presents a method for automatically learning "Reduced Regular Expressions" (RREs) to describe these contexts more flexibly. By employing an optimized RRE-Tree search within a Transformation-Based Learning framework, the system achieves superior accuracy on word disambiguation tasks, such as distinguishing between confusable word pairs like "past" and "passed."
Introduction
Many fundamental NLP tasks—including part-of-speech tagging, spelling correction, and word sense disambiguation—can be framed as n-way classification problems. The core challenge lies in accurately characterizing the "ambiguity site" or the surrounding context. Traditional models typically utilize rigid features, such as specific words at fixed offsets (e.g., "the word two places to the left"). While effective for local dependencies, these features struggle with non-local or variable-length patterns, such as a verb followed by an arbitrary number of adjectives.
Methodology: Reduced Regular Expressions
To overcome the limitations of fixed-width windows, this research introduces the use of Reduced Regular Expressions (RREs) as feature conditions. RREs provide a richer descriptive language through several components:
- Atoms: Specific words or part-of-speech tags.
- Closures: Matching zero or more (
*) or one or more (+) occurrences of a symbol. - Negation: Matching any symbol except a specific one (e.g.,
~DTfor non-determiners). - Concatenation: Combining these elements into complex sequences.
The learning process is integrated into the Transformation-Based Learning (TBL) paradigm, where the model iteratively learns rules to correct initial classification guesses.
The RRE-Tree
Searching the vast space of possible regular expressions is computationally intensive. To manage this, the author developed the RRE-Tree, a data structure that tracks matches across the training corpus.
The learner traverses this tree to identify patterns that maximize classification accuracy. Efficiency is maintained through pruning (discarding branches that cannot yield better rules) and state merging (combining paths with identical match sets).
Experimental Setup
The system was evaluated on the task of confusable word set disambiguation using instances from the Brown Corpus. Data was tokenized and tagged according to Penn Treebank standards, with an 80/20 train-test split. The model considered a context window of +/- 5 words around the target ambiguity site.
Results and Discussion
The RRE-based approach was compared against a standard feature set across 14 confusable word pairs. The results demonstrate the power of more expressive feature languages.
Key findings include:
- Superior Performance: The RRE system outperformed the standard model in 9 out of 14 pairs and achieved an overall accuracy of 89.9% (compared to 88.5% for the standard learner).
- Effective Logic: Learned rules often captured nuanced logic, such as identifying "passed" when the preceding word is not a determiner and the following word is a preposition.
- Data Sensitivity: Gains were most pronounced on larger datasets, suggesting that richer features require more training evidence to avoid overfitting.
Conclusion
By moving beyond fixed-window features to automatically learned Reduced Regular Expressions, NLP models can better capture the complexities of natural language. While computationally demanding, optimizations like the RRE-Tree make this approach feasible. Future work may involve applying RRE features to other machine learning frameworks beyond TBL and exploring more sophisticated search heuristics.
Summary updated