Professional Documents
Culture Documents
component
E. Jembere
1
QA Block Architecture
Passage Answer
Q
Query Formulation Keywords
Retrieval
Passages
Processing A
Question
Classification
WordNet
Document
Retrieval Parser
WordNet
NER
Parser
NER
2
Question Processing
• Two main tasks
Query formulation: Extract keywords from
the question and formulate a query
Question classification: Determining the
type of the answer.
3
Query formulation
Two ways in which query formulation is done
1. List of words
This is done the same way it is done in IR systems
To improve the system query expansion is often
applied.
Query expansion: addition of query terms.
2. Query reformulation
Queries are reformulated so that they can be in the
form they are most likely to be found
E.g. “When was the laser invented” can be
reformulated to “the laser was invented”.
5
Answer Types
• Of course, it isn’t that easy…
Who questions can have organizations as
answers
Who sells the most hybrid cars?
Which questions can have people as answers
Which president declared a state of disaster in SA
during thr COVID-19 crises?
6
Answer Type Detection
• For answer type detection we need
Answer Type Taxonomy
Question classifier
typical features used for classification are
• Words in the question
• POS tags for the word
• Named entities
• Often a single word in the question determines the
question type
We call such a word the head-word
• Semantics can be added to improve classification
accuracy
• Semantic Role labelling is often used to identify the
constituencies in the question
7
Example: Answer Type Taxonomy
• Contains ~9000 concepts reflecting expected answer types
• Merges named entities with the WordNet hierarchy
8
Semantic Role Labelling
• The task of automatically determining which constituents in the sentence
are semantic arguments for a given predicate and then determining the
appropriate roles for each of those arguments