Abstract: Katja Filippova, Michael Strube. Proceedings of Human Language Technologies: The 2009 Annual Conference of the North American Chapter of the Association for Computational Linguistics, Companion Volume: Short Papers.
2009.
The Challenge of Tree Linearization
In various Natural Language Processing (NLP) tasks, such as machine translation or text summarization, systems often generate internal syntactic representations—typically trees—to represent the intended meaning. However, for human consumption, these abstract structures must be converted into linear strings of words. This process, known as tree linearization, involves determining the optimal word order that is both grammatically correct and natural-sounding.
The traditional "gold standard" for English has been an "overgenerate and rank" strategy. This involves generating all permutations allowed by basic grammar and using a trigram language model (LM) to select the most probable sequence. While effective for rigid local structures, this approach often fails to capture long-distance dependencies or the flexible placement of adjuncts in complex sentences.
Methodology: A Hybrid Approach
Filippova and Strube challenge the assumption that simple trigram LMs are sufficient for full-sentence linearization. They propose a hybrid model that distinguishes between local phrase ordering and global clause structure:
- Phrase-Level Ordering (NPs, PPs): The system continues to use a trigram LM for ordering words within simple phrases (e.g., "the big red barn"). In these cases, local context is generally sufficient for high accuracy.
- Clause-Level Ordering: For constituents dependent on a finite verb, the authors switch to two Maximum Entropy (MaxEnt) classifiers. These classifiers are trained on a variety of linguistic features, including Part-of-Speech (PoS) tags, syntactic roles, and word length.
- The first classifier identifies the sentence-initial constituent.
- The second classifier determines the pairwise precedence for the remaining constituents.
Experimental Setup
The models were trained and tested using a subset of the TIPSTER corpus (Wall Street Journal articles from 1987-1992). Dependency relations and PoS tags were automatically generated using the Stanford parser. The language model was built with the CMU toolkit, employing Good-Turing smoothing. The final dataset consisted of approximately 41,000 training sentences and a test set of 600 articles.
Results and Discussion
The evaluation utilized three metrics: exact match accuracy ($acc$), Kendall’s $\tau$ (rank correlation), and an edit distance metric ($di$).
At the phrase level, the trigram LM performed exceptionally well, reaching 91% accuracy overall. However, performance plummeted when applied to clause-level structures. The proposed hybrid approach significantly outperformed the pure LM baseline in these complex scenarios.
As shown in the results, the combined approach improved clause-level accuracy from 49% to 67%. This jump confirms that while LMs are adept at handling "local" dependencies, they are often "blind" to the broader relationships between subjects and distant prepositional phrases. Furthermore, the classifier-based approach is more computationally efficient, avoiding the "combinatorial explosion" inherent in ranking every possible permutation of a high-branching node.
Conclusion and Limitations
The study demonstrates that English word order, while relatively fixed, possesses enough flexibility at the clause level to require more than just local statistical models.
However, several limitations remain. The use of a strict "exact match" accuracy metric may penalize valid alternative word orders (e.g., "Yesterday I went" vs. "I went yesterday"). Additionally, the current system relies on automatically parsed data, meaning errors in the initial syntactic analysis can propagate. Future work could explore the integration of deeper semantic features to further refine the linearization of constituents.
Summary updated