Trouver le coupable : Fouille d'erreurs sur des sorties d'analyseurs syntaxiques

Benoît Sagot, Éric Villemonte de la Clergerie

Introduction

Developing robust syntactic parsers for natural language is a complex task involving extensive linguistic resources, primarily lexicons and grammars. Despite significant efforts, these resources often remain incomplete or contain errors. When a parser fails on a sentence, it typically offers little diagnostic information. Identifying the specific "culprit"—the word or construction causing the failure—within a massive corpus is a daunting manual task. This paper presents an automated "error mining" technique designed to pinpoint these failures using an iterative probabilistic model.

Methodology

The proposed approach treats parse failures as a statistical problem, assigning a "suspicion rate" to word forms across a corpus. The core algorithm follows an iterative refinement process:

  1. Initial Assignment: In a failed sentence, all words are initially considered equally suspect.
  2. Iterative Refinement: The system calculates the average suspicion of a word form across the entire corpus. It then re-evaluates sentences; if a sentence contains a word that is frequently associated with failures elsewhere, that word "absorbs" suspicion from its neighbors. This process continues until scores converge.
  3. Ranking ($M_f$): To prioritize actionable errors, a metric $M_f$ is used to balance the suspicion rate with word frequency, ensuring that systematic errors in common words are prioritized over rare typos.

A strategic component of this research involves comparing two different parsers, FRMG and SXLFG, which share a common lexicon (Lefff) and pre-processing chain (SXPipe). Discrepancies in failure patterns between the two help isolate whether the error lies in the shared resources or a specific parser's grammar.

Data and Visualization

The model was evaluated on two French corpora: Corpus MD (journalistic text from Le Monde diplomatique) and Corpus EASy (diverse styles including medical and literary). The Lefff 2 lexicon, containing over 600,000 entries, served as the primary morphological resource.

To facilitate the work of linguists, the authors developed a web-based visualization tool. This interface allows users to browse ranked suspects, examine their lexicon entries, and review the specific sentences where they triggered failures, turning raw statistics into an actionable debugging suite.

The error browsing interface showing statistical data and failed sentences for the suspect word "demeure".

Key Results

The error mining system successfully categorized various types of failures across thousands of sentences. Key findings included:

  • Pre-processing Errors: Identified bugs in SXPipe, such as the incorrect handling of sequences like "80/à".
  • Lexical Gaps: Flagged missing entries in the Lefff lexicon, such as the common noun form of "fiche" or the word "jour".
  • Grammatical Limitations: Revealed specific parser weaknesses, such as FRMG's inability to handle sentences ending in semicolons (;) or certain attributive constructions.
Top-ranked suspects and the identified origins of their parsing errors.

For the MD corpus, the algorithm processed millions of words and identified approximately 18,500 pertinent suspect forms, drastically reducing the manual effort required for parser debugging.

Conclusion and Future Work

The "single cause" heuristic proved highly effective for identifying primary blockers in syntactic parsing. Future improvements aim to move from word forms to lemmatized forms to group related errors and to better handle lexical ambiguity. Ultimately, the goal is to transition from error detection to automated correction suggestions, where the system might treat a suspect word as "unknown" to see if the parser can infer its category from context.

Summary updated

BibTeX
@inproceedings{sagot2006trouver,
  author = {Benoît Sagot and Éric Villemonte de la Clergerie},
  title = {{Trouver le coupable : Fouille d'erreurs sur des sorties d'analyseurs syntaxiques}},
  booktitle = {TALN (Articles Longs)},
  year = {2006},
}
Figure