QANUS: An Open-source Question-Answering Platform

Jun-Ping Ng, Min-Yen KanarXiv 2015

Abstract In this paper, we motivate the need for a publicly available, generic software framework for question-answering (QA) systems. We present an open-source QA framework QANUS which researchers can leverage on to build new QA systems easily and rapidly. The framework implements much of the code that will otherwise have been repeated across different QA systems. To demonstrate the utility and practicality of the framework, we further present a fully functioning factoid QA system QA-SYS built on top of QANUS.

Introduction

Building a Question-Answering (QA) system is traditionally a massive undertaking. Researchers often find themselves "reinventing the wheel" by writing boilerplate code for document indexing, question parsing, and evaluation metrics before they can even test a new idea. This creates two major hurdles: a high barrier to entry for new researchers and a lack of reproducibility, as it is difficult to create credible baseline systems for comparison.

QANUS (pronounced "KAY-NESS") addresses these issues by providing a standardized, open-source, Java-based framework. It serves as a "foundation" for QA research, implementing repetitive code and allowing researchers to focus on innovating specific components rather than rebuilding infrastructure from scratch.

The QANUS Architecture

QANUS proposes a modular, pipelined architecture consisting of four serial stages:

  1. Information Source Preparation (ISP): Setting up the knowledge base, such as indexing a corpus.
  2. Question Processing (QP): Parsing queries, tagging parts of speech, and determining expected answer types (e.g., person, date, or location).
  3. Answer Retrieval (AR): Searching the information source and extracting candidate answers.
  4. Evaluation: Automatically checking system answers against a "gold standard" dataset.

A key design feature is the Controller-Engine pattern. Each stage is split into a FrameworkController, which manages data flow and I/O, and a FrameworkEngine, which handles the core logic. This separation allows developers to "plug and play" new modules—such as replacing a basic named-entity recognizer—without disrupting the overall system communication.

The QANUS framework architecture illustrating the Controller-Engine pattern across four stages.

Reference Implementation: QA-SYS

To demonstrate the framework's utility, the authors developed QA-SYS, a factoid QA system built on top of QANUS. QA-SYS utilizes the AQUAINT-2 news corpus as its primary information source and is evaluated using the TREC 2007 QA Track benchmark.

Detailed component diagram of the QA-SYS reference implementation built on the QANUS framework.

As shown in the implementation details, QA-SYS integrates standard tools like Lucene for indexing and retrieval, alongside custom parsers for TREC questions and AQUAINT documents. This demonstrates how QANUS can be extended with specific components to create a functional system.

Key Insights and Results

QANUS emphasizes generalization over specialization. Unlike earlier models like the HG-01 pipeline, which were heavily oriented toward Information Retrieval (IR), QANUS is paradigm-agnostic, supporting both IR-centric and semantics-based systems. By releasing the code under the Open Software License (OSL) v3.0, the authors aim to foster a community where baseline systems are shared and results are easily reproducible.

In evaluations on the TREC 2007 dataset, QA-SYS achieved an accuracy of 0.119. While lower than the top-performing systems of that era, the authors highlight that QA-SYS is intended as a simplistic, reproducible baseline. It provides a clear starting point for researchers to improve upon using standard techniques like Lucene indexing and basic passage ranking heuristics.

Conclusion and Future Work

QANUS lowers the barrier to entry for QA research by providing a robust, extensible framework. Future work includes expanding the evaluation stage to support "list" questions, improving ranking heuristics through query expansion and dependency analysis, and enhancing the robustness of internet-based data sources. The framework represents a significant step toward standardizing QA system development and promoting collaborative innovation in the field.

Summary updated

BibTeX
@misc{ng2015qanus,
  author = {Jun-Ping Ng and Min-Yen Kan},
  title = {{QANUS: An Open-source Question-Answering Platform}},
  year = {2015},
  eprint = {1501.00311},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1501.00311},
}
Figure