Dr. Dobb's is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them. Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.


Channels ▼
RSS

Design

A Fast Q&A System


Hypernyms

We are mainly interested in the hypernym/hyponym relationships between synsets for the Q&A task. A hypernym is a more general sense of a meaning—the hypernym of the synset {plant, flora} is {living thing, organism} whose hypernym is {thing, entity}. There are several such hierarchies of synsets that represent the specificity of a particular synset. For example, the word "horse" is found lower in the hierarchy than the more general word "animal."

Hypernyms enable matches between questions and answers without exact word comparisons. A hypernym ("animal") in a question matches a specific word ("horse") from an answer. You identify a set of hypernyms with every specific word. However, if you include hypernyms that are too specific, then words will have long lists of associated hypernyms, unnecessarily expanding the size of the index. On the other hand, if the hypernyms are too general, then you may have "noisy" matches for cases where the question and answer words match at a high level. Therefore, you select hypernyms such that the number of words assigned to the hypernym is within a range, and the depth of the hypernym is not too high.

Every hypernym is also assigned a score. This score is computed using a training set of answers and questions. If the hypernym is seen often in many question and answer pairs, then it is assigned a higher weight than a hypernym that occurs more broadly across diverse questions and answers. The hypernym score is used to more precisely generate a query from a question. A hypernym with a higher score has a proportionately higher keyword boost in the generated query.

The use of inflected words is another problem in matching words. A search engine may not match words such as "buy" and "bought" or "purchased" and "purchase". WordNet uses a dictionary and a set of rules to strip suffixes to find the root form of any given word. The three word usage problems (synonyms, hypernyms, and inflected words) are the leading causes of word mismatches between potential answers and questions.

Query Transformation

The best answer for a question may not be the one that contains the most keywords in common with the question. For example, the answer to the question "Where is the main office of UNIDO?" may contain phrases such as "located in" or "is located."

A simple question categorizer looks for the occurrence of question words such as "who," "when," "where," "which," "what," "how," and "why." A set of phrases commonly associated with a question category can be found using a collection of training questions and answers. The list of questions and answers are grouped by a question category. We identify a set of phrases that are frequently seen in answers for a particular question category. For example, a "when" question will have phrases such as "on the" and "will be." These phrases are used to supplement the query generated from the question. The selection of phrases excludes occurrences with nouns, since such phrases are usually specific to a question. A technical question and answer training set may contain many occurrences of the word "computer" or "database" that are not seen in general answers. Therefore, all phrases containing a noun are excluded.

A weight is computed for every phrase depending on the number of occurrences in all answers, the set of relevant answers (for the question category), and the set of irrelevant answers (for all other question categories). The n top-ranked phrases are assigned to a question category and become part of the generated query for a question.


Related Reading


More Insights






Currently we allow the following HTML tags in comments:

Single tags

These tags can be used alone and don't need an ending tag.

<br> Defines a single line break

<hr> Defines a horizontal line

Matching tags

These require an ending tag - e.g. <i>italic text</i>

<a> Defines an anchor

<b> Defines bold text

<big> Defines big text

<blockquote> Defines a long quotation

<caption> Defines a table caption

<cite> Defines a citation

<code> Defines computer code text

<em> Defines emphasized text

<fieldset> Defines a border around elements in a form

<h1> This is heading 1

<h2> This is heading 2

<h3> This is heading 3

<h4> This is heading 4

<h5> This is heading 5

<h6> This is heading 6

<i> Defines italic text

<p> Defines a paragraph

<pre> Defines preformatted text

<q> Defines a short quotation

<samp> Defines sample computer code text

<small> Defines small text

<span> Defines a section in a document

<s> Defines strikethrough text

<strike> Defines strikethrough text

<strong> Defines strong text

<sub> Defines subscripted text

<sup> Defines superscripted text

<u> Defines underlined text

Dr. Dobb's encourages readers to engage in spirited, healthy debate, including taking us to task. However, Dr. Dobb's moderates all comments posted to our site, and reserves the right to modify or remove any content that it determines to be derogatory, offensive, inflammatory, vulgar, irrelevant/off-topic, racist or obvious marketing or spam. Dr. Dobb's further reserves the right to disable the profile of any commenter participating in said activities.

 
Disqus Tips To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy.