Question-Answering System is an approach to answer the questions asked by humans to the machines in the natural language. This system is an automated system that provides the interface between the machine and humans to automatically answer the questions.
Question answering task combines techniques from artificial intelligence, natural language processing, statistical analysis, pattern matching, information retrieval, and information extraction. It constructs the answers by querying a database of information, usually, it is knowledge base. The Data may be the combination of structured and unstructured data.
Recently, IBM’s Question Answering Watson is gaining popularity based on its high performance, it is beating humans at the task of question answering.
These question answering systems are based on factoid questions. The term “factoid” refers that these answering are formed with short sentences and simple facts. These type of questions can be answered with sentences presenting the name of the place, name of a person, about location etc.
Information Retrieval Systems allows us to retrieve locate relevant documents that might have associated information. Then an ordered list of these documents is maintained to get useful information. A concise answer is extracted by Question-Answering Model and returned to the user. The challenges for Q-A System are understanding question correctly in natural language, identifying question type, formulation of the query, resolving ambiguity, semantic symmetry detection etc,. And at last the identification of a perfect answer requires a proper validation mechanism.
All above-discussed tasks can be accomplished step by step:
- Question Analysis- Parsing, Question classification, Question reformulation.
- Document Analysis- Extract Candidate Documents, identify answers.
- Answer Analysis- Extract Candidate answers and rank the best one.
Below figure explains the flow of execution of the Question-Answering task.
Techniques:
The main approaches to building a Question Answering system with factoid type of questions are:
- IR-based Q-A System/Text-Based Q-A System
- Knowledge-based Q-A System
- Watson Deep Q-A system
1. IR-based Q-A System/Text-Based Q-A System:
With a given user question, information retrieval system extracts passages from the documents directly, this extraction of the passages is purely guided by the text in the question. And before processing the data for getting the answer, the question is identified. This identification is regarding question type, that whether the question is asking about entity name (eg. name of a person, name of the place), time-related information( eg. year, date) and so on. To execute this type checking an answer type taxonomy for the set of answer types, this can be done manually or by WordNet etc.
Queries are formulated based on the question type and sent to the search engine to get the relevant documents those match with question type.These queries contain the keywords that are used to extract documents. Output by the search engine is the list of the documents based on their ranking. These documents are broken up into suitable passages and re-ranked.
The passage retrieval use techniques like named entities, question keywords, longest sequence, the proximity of keywords, N-gram overlapping etc. And in the last step, candidate answer strings are considered from the passages and these answers are ranked. Top rank answers will become user’s required answers. This decision may be based on some factors like answer type match, number of matched keywords, keyword distance, Novelty factor, punctuation location, and sequence of question keywords.
2. Knowledge-based Q-A System:
The knowledge-based question answering is to answer a natural language question by mapping it to a query over a structured database. An example is BASEBALL Q-A System that has the database of baseball games and stats. Semantic parsers(map simple text to logical form). This logical form can be predicate calculus or a query language like SQL or SPARQL. Eg.
Question Logical Form
When was Ada Lovelace born? birth-year (Ada Lovelace, ?x)
The logical form is the query. The structured database can be sets of RDF triples.
The knowledge-based question answering task is to answer factoid questions that ask about one of the missing arguments in a triple. Consider an RDF triple like the following:
subject predicate object
Ada Lovelace birth-year 1815
It can be shown as the mapping from textual strings like ”When was ... born” to canonical relations in the knowledge base like birth-year. As:
“When was Ada Lovelace born?” → birth-year (Ada Lovelace, ?x)
“What is the capital of England?” → capital-city(?x, England)
Rule-based Methods- In this strategy, the rules are written by hand to match “when” etc.
Supervised Methods- Sometimes the data is consisting of a set of questions paired with their correct logical form. Then the system takes those pairs of training tuples and produce a system that maps from new questions to their logical forms. Such algorithms first parse the questions and then align the parse trees to the logical form. Initially, lexicon and morphotactics are given.
3. Watson Deep Q-A system:
DeepQA uses both the IR-based and knowledge-based techniques. Watson is a Q-A System that uses Deep learning techniques.It has 4 main stages:
(1) Question Processing
(2) Candidate Answer Generation
(3) Candidate Answer Scoring
(4) Answer Merging and Confidence Scoring
For Question classification, the matching is generally done by writing regular expressions to do the pattern-matching over words or over the parse trees. Logistic regression classifier is used that can return a probability as well as a lexical answer type. DeepQA uses instance weighting etc. So, overall the Watson type system can handle complex and rare questions by using advanced learning techniques.
Conclusion-
If we start from the very basic then IR-based systems come into existence but these type of systems can handle very basic questions. IR-Based systems can not handle complex questions, but it gets the answers of questions based on text similarity only. Secondly, the Knowledge-Based Q-A Systems can give answers more efficiently as these use the NLP Techniques to find answers. And at the last, the Deep Q-A Systems are advanced level Q-A Systems that use the more Deep learning Technologies to learn over the time. So, recently Deep Q-A Systems are very popular to use. In future progress, more research can be accomplished on semi-structured data.
References-
- http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.219.4498&rep=rep1&type=pdf
- https://www.cambridge.org/core/journals/natural-language-engineering/article/natural-language-question-answering-the-view-from-here/95EA883AFC7EB2B8EC050D3920F39DE2
Comments
Post a Comment