Trouver et confondre les coupables : un processus sophistiqué de correction de lexique

Lionel Nicolas, Benoît Sagot, Miguel A. Molinero, Jacques Farré, Éric Villemonte de la Clergerie

Introduction

In the field of Natural Language Processing (NLP), the performance of a syntactic parser is fundamentally constrained by the quality of its underlying resources: the grammar and the lexicon. For a language as complex as French, maintaining a comprehensive lexicon like the Lefff (Lexique des formes fléchies du français)—which contains over 600,000 entries—is a monumental task. As these resources mature, identifying the remaining "holes" becomes increasingly difficult. When a parser fails to process a sentence, it is often unclear whether the failure stems from a missing word, an incomplete lexical definition (such as a missing subcategorization frame for a verb), or a flaw in the grammar rules.

This paper, originally presented at TALN 2009, proposes an automated "detective" system designed to pinpoint these lexical gaps. By treating the parser's expectations as a guide, the authors developed a pipeline that suggests precise corrections, transforming parse failures into actionable data for lexicographers.

Methodology: The Detective Pipeline

The authors implement a multi-stage process to isolate and resolve lexical errors within a corpus of 280,000 sentences from Le Monde diplomatique.

1. Sentence Classification and Filtering

Not every failed parse is a candidate for lexical correction; many failures result from ungrammatical input or "noisy" text (e.g., OCR errors or formatting issues). To focus on genuine lexical gaps, the authors employ an entropy-based classifier (MegaM) trained on part-of-speech (POS) 3-grams. This classifier filters out sentences likely to be grammatically broken, leaving behind those that are likely failing due to specific missing information in the lexicon.

2. Culprit Detection

Once a sentence is deemed "fixable," the system must identify the specific word causing the failure. Two complementary techniques are used:

  • Modified POS Tagging: The authors utilize a tagger (MrTagoo) in a "blind" mode. By hiding a specific word's lexical entry from the tagger, they force it to predict the category based on context. If the predicted category differs from what is currently in the lexicon, the word is flagged as a suspect. To minimize false positives, the authors added four "wrappers" (surcouches), including frequency analysis and a "credibility vote," which improved detection precision from 47% to 89%.
  • Statistical Error Mining: This method compares the frequency of a word in failed parses versus successful ones. Words that appear disproportionately in failures are marked for investigation.

3. Hypothesis Generation: The "Joker" Technique

The core innovation of the system is the use of a "joker" word. Once a word is suspected of being the culprit, it is replaced in the sentence by an underspecified lexical entry—a "joker." The parser is then re-run. Because the joker is flexible, the parser's internal logic "fills in" the missing requirements. For instance, if a verb is missing a specific prepositional requirement (e.g., revenir needing "de" or "vers"), the parser will identify which specific subcategorization frame allows the sentence to be successfully analyzed.

4. Ranking and Validation

To ensure the quality of suggestions, the system uses a multi-parser fusion approach. Results from the FRMG (French Meta-Grammar) parser and the SxLFG-FR parser are combined. By calculating the harmonic mean of suggestions from different engines, the system ranks the most likely corrections, effectively filtering out noise caused by individual grammar deficiencies.

Results and Impact

The system was evaluated over four iterative correction sessions, yielding significant improvements to the Lefff:

  • Quantitative Success: A total of 2,861 lexical forms were updated, representing 612 unique lemmas.
  • Category Focus: The system was particularly adept at identifying missing verbs (1,568 forms) and adjectives (801 forms).
  • Operational Efficiency: The validation of these thousands of entries required only a few hours of human oversight. Manually identifying and fixing these errors would have otherwise taken weeks or months of expert labor.

Beyond simple missing words, the system successfully identified complex usage gaps, such as specific subcategorization frames for common verbs that had been previously overlooked.

Conclusion and Future Directions

The "detective" approach demonstrates that parser failures are not merely dead ends but are valuable informants for resource maintenance. By automating the identification of lexical gaps, the authors have created a virtuous cycle: improving the lexicon reveals more about the grammar's remaining weaknesses.

While the system currently requires a human in the loop to prevent "hallucinated" entries, it represents a major step toward self-correcting linguistic resources. Future work aims to extend this iterative logic to the grammar rules themselves, potentially using the entropy classifier's models to identify and fix structural deficiencies in the parsing engine.

Summary updated

BibTeX
@inproceedings{nicolas2009trouver,
  author = {Lionel Nicolas and Benoît Sagot and Miguel A. Molinero and Jacques Farré and Éric Villemonte de la Clergerie},
  title = {{Trouver et confondre les coupables : un processus sophistiqué de correction de lexique}},
  booktitle = {TALN (Articles Longs)},
  year = {2009},
}
Figure