TL;DR
Researchers have developed the first ontology-based question answering (QA) system specifically for the Vietnamese language. By combining natural language processing (NLP) frameworks with semantic web technologies, the system moves beyond simple keyword searches to provide precise answers from structured knowledge bases, achieving up to 95% accuracy in question analysis.
What Problem Does This Paper Address?
Most search engines operate on a keyword-matching basis, returning a list of documents that the user must then sift through to find an answer. Question Answering (QA) systems aim to skip this step by providing the exact answer to a natural language query.
While such systems exist for English, the Vietnamese language presents unique challenges. Vietnamese is monosyllabic, meaning a single word can consist of multiple tokens, complicating standard NLP tasks like word segmentation and part-of-speech tagging. Furthermore, there has been a lack of research into natural language interfaces that can query structured "ontologies"—knowledge bases that define relationships between concepts—in Vietnamese. This paper introduces VnQAS, a domain-independent system designed to fill this gap.
Methods
The system follows a "waterfall" architecture inspired by the English-based AquaLog system, divided into two primary components:
1. Natural Language Question Analysis (Front-end)
This component uses the GATE (General Architecture for Text Engineering) framework to parse the user's input. The pipeline involves:
- Preprocessing: Handling Vietnamese-specific word segmentation and identifying "question-words" (e.g., ai for "who", bao nhiêu for "how many").
- Syntactic Analysis: Using JAPE (Java Annotation Pattern Engine) grammars to identify noun phrases and the relations between them.
- Semantic Analysis: Classifying the question into categories (e.g., Who, When, Where, Yes/No) and mapping the input into an intermediate representation tuple:
(question-structure, question-class, Term1, Relation, Term2, Term3).
2. Answer Retrieval (Back-end)
The back-end takes the intermediate tuple and maps it to the target ontology.
- Ontology Mapping: The system attempts to match terms in the tuple to concepts or instances in the ontology. If an exact match isn't found, it employs a string distance algorithm to find the closest semantic neighbor.
- Answer Extraction: Once the terms are mapped, the system queries the ontology (using a Sesame server) to extract the specific individuals or values that satisfy the query.
Datasets
To evaluate the system, the authors built a custom organizational ontology for the College of Technology at Vietnam National University, Hanoi (COLTECH-VNU).
- Ontology Stats: 15 concepts (e.g., "student," "lecturer"), 17 relations (e.g., "studies," "teaches"), and 78 specific instances.
- Test Set: A list of 60 questions with varying structures (simple, composite, etc.) related to the university domain.
Key Insights and Ideas
- Decoupling Language from Logic: By using an intermediate representation (the query tuple), the authors successfully decoupled the linguistic analysis of Vietnamese from the underlying database logic. This makes the system "domain-independent," meaning it could theoretically be applied to a medical or legal ontology without changing the front-end analysis engine.
- Handling Ambiguity: Natural language is messy. The inclusion of a "Relation Similarity Service" and string distance metrics allows the system to handle user queries that don't perfectly match the formal names of attributes in the database.
- JAPE for Vietnamese: The researchers demonstrated that JAPE grammars, typically used for English, are highly effective for defining the specific syntactic patterns of Vietnamese noun phrases and relations.
Key Results
The system was evaluated on its ability to both analyze the question and retrieve the correct answer:
- Question Analysis Accuracy: 95% (57 out of 60 questions). The few errors occurred because the JAPE grammars did not yet cover certain complex sentence structures.
- Answer Retrieval Accuracy: 70%. While lower than the analysis phase, this is significant for a first-of-its-kind system.
- Automation: 50% of the questions were answered completely automatically, while 20% required a brief user interaction to resolve ambiguities in ontology mapping.
Limitations and Future Work
The primary bottleneck identified was the Ontology Mapping phase. Errors often occurred when specific terms in the user's query could not be mapped to the target ontology, even with fuzzy matching.
The authors plan to:
- Extend the JAPE grammars to provide better coverage for complex Vietnamese sentence structures.
- Improve the Ontology Mapping module to handle a wider variety of synonyms and linguistic variations.
- Scale the system to larger, more diverse ontologies beyond the university domain.
Summary updated