High Accuracy Rule-based Question Classification using Question Syntax and Semantics

Harish Tayyar Madabushi, Mark LeeCOLING 2016

Abstract

While recent Natural Language Processing research has heavily favored machine learning, this paper demonstrates that a purely rule-based approach can still achieve state-of-the-art results for Question Classification (QC). By combining structural "Syntactic Maps" with semantic "Concepts" derived from WordNet, the authors achieve a massive 97.2% accuracy on a standard benchmark, outperforming the previous ML-based state-of-the-art by nearly 6 percentage points.

The Challenge of Question Classification

Question Answering (QA) systems rely on Question Classification (QC) to determine the expected answer type. For instance, the question "Who is the prime minister?" requires a "person" entity, whereas "Where is the prime minister?" requires a "location." Historically, rule-based QC systems were dismissed as too rigid or cumbersome, leading researchers toward statistical models like Support Vector Machines (SVMs) and Neural Networks. This paper challenges that trend, arguing that explicit linguistic knowledge can yield superior precision when programmed effectively.

Methodology: A Structural and Semantic Pipeline

The authors propose a pipeline that moves beyond raw statistical patterns to understand the underlying syntax and semantics of a query. The process is divided into structural extraction and semantic rule matching.

Syntactic Maps (SM)

The system does not rely on raw, complex parse trees. Instead, it extracts a "Syntactic Map"—a standardized template isolating five key elements: the WH-word, the WH-noun phrase, the auxiliary verb, the main clause noun phrase, and the main verb. This standardization allows the system to ignore irrelevant syntactic noise.

Conversion of a constituency parse tree into a standardized Syntactic Map structure.

Smart Headword Extraction

A common failure in QC is identifying the wrong target noun (e.g., identifying "failure" as the target in "crop failure"). The authors introduced techniques called "Preposition Rolling" and "Possessive Unrolling" to navigate these structures and find the true semantic headword.

Linguistic transformations for headword extraction, including preposition rolling and possessive unrolling.

Entity Identification and Semantic Mapping

To handle multi-word entities (e.g., "bipolar disorder"), the system uses "Wikification," linking phrases to Wikipedia titles to treat them as single units. These units are then mapped to "Types" using WordNet hyponyms. Finally, a rule-matching algorithm iterates through the Syntactic Map, applying handcrafted rules based on these semantic types to assign a final class from a 50-class taxonomy.

Evaluation and Results

The system was developed using the Li and Roth (2002) dataset (5,500 questions) and evaluated on the strictly held-out TREC 10 dataset (500 questions).

The results were unprecedented: the system achieved 97.2% accuracy on the fine-grained taxonomy. This represents a nearly 6-point improvement over the previous state-of-the-art (91.6%), which utilized semantic features within a Linear SVM. Out of 500 test questions, only 14 were misclassified.

Key Insights

  1. Rule-based systems are viable: Carefully designed linguistic rules can outperform statistical models in well-scoped tasks like QC.
  2. Syntax as Disambiguation: The authors found that a word's syntactic position in a question almost always uniquely identifies its intended sense, providing implicit Word Sense Disambiguation (WSD).
  3. Semantic Awareness in Extraction: Simple heuristic-based noun extraction is insufficient; understanding the relationship between words (like possessives) is critical for finding the question's true subject.

Conclusion and Future Work

While highly accurate, the system remains brittle to specific linguistic nuances, such as words with dual verb/noun roles (e.g., "test"). Future work involves extending this approach to conversational queries found in modern digital assistants and integrating the module into end-to-end QA systems to evaluate its downstream impact on information retrieval.

Summary updated

BibTeX
@inproceedings{madabushi2016high,
  author = {Harish Tayyar Madabushi and Mark Lee},
  title = {{High Accuracy Rule-based Question Classification using Question Syntax and Semantics}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2016},
}
Figure