IP Library Granted Patent US 9,684,714
Granted Patent B2
US 9,684,714 · App. 14/579,612 · Granted Jun 20, 2017

Using paraphrase metrics for answering questions

Inventors: Anthony T. Levas (Yorktown Heights, NY); James W. Murdock, IV (Millwood, NY); John M. Prager (Pomona, NY); Benjamin P. Segal (Hyde Park, NY); Timothy P. Winkler (Clinton, MA)
Assignee: International Business Machines Corporation
G06F17/30684G06F17/30654G06F17/30731
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,684,714
App. No.
14/579,612
Granted
Jun 20, 2017
Kind
B2
Abstract

A mechanism is provided in a data processing system for using paraphrase metrics for answering questions. The mechanism receives an input question and generating a candidate answer from a corpus of information. The candidate answer has a supporting passage from the corpus of information. The mechanism divides the input question into a first sequence of tokens and divides the supporting passage into a second sequence of tokens. The mechanism identifies a plurality of subsequences of tokens within the second sequence of tokens and applies a paraphrase metric to compare the first sequence of tokens to each of the plurality of subsequences of tokens to generate a plurality of paraphrase metric scores. The mechanism then determines a confidence score for the candidate answer based on a highest paraphrase metric score within the plurality of paraphrase metric scores.

Claims (77)

1. A method, in a data processing system, for using paraphrase metrics for answering questions, the method comprising:

receiving an input question;

generating a candidate answer from a corpus of information, wherein the candidate answer has a supporting passage from the corpus of information;

dividing the input question into a first sequence of tokens;

dividing the supporting passage into a second sequence of tokens;

matching question tokens from the first set of tokens to passage tokens from the second set of tokens, wherein matching the question tokens to the passage tokens comprises identifying a focus of the input question and matching the focus of the input question to an occurrence of the candidate answer in the supporting passage, wherein matching the focus of the input question to an occurrence of the candidate answer in the supporting passage comprises:

treating the focus of the question as a match for the candidate answer;

modifying the input question to replace text of the focus of the question with text of the candidate answer;

modifying the passage to replace text of the candidate answer with text of the focus of the question; or

modify the input question and the passage to replace text of the focus of the question and text of the candidate answer with a common reserved constant string;

identifying a plurality of subsequences of tokens within the second sequence of tokens;

applying a paraphrase metric to compare the first sequence of tokens to each of the plurality of subsequences of tokens to generate a plurality of paraphrase metric scores; and

determining a confidence score for the candidate answer based on a highest paraphrase metric score within the plurality of paraphrase metric scores.

2. The method of claim 1 , wherein the paraphrase metric is a machine translation metric.

3. The method of claim 1 , further comprising applying a plurality of paraphrase metrics to produce a plurality of results.

4. The method of claim 3 , further comprising eliminating a given paraphrase metric that is determined to be ineffective based on the plurality of results from future application.

5. The method of claim 1 , wherein dividing the input question into the first sequence of tokens comprises:

dividing the input question into a plurality of sequences of question tokens;

identifying a given sequence of question tokens within the plurality of sequences of question tokens having important content of the input question as the first sequence of tokens.

6. The method of claim 1 , wherein identifying the plurality of subsequences of tokens within the second sequence of tokens comprises restricting the plurality of subsequences of tokens such that:

a number of tokens in each subsequence of tokens must be within a first predetermined number of a number of tokens in the first sequence of tokens;

each subsequence must contain at least a second predetermined number of tokens that match tokens in the first sequence of tokens;

each subsequence must contain at least a third predetermined number of non-stop-word tokens that match tokens in the first sequence of tokens;

each subsequence must contain the candidate answer,

each subsequence may not contain a sentence boundary;

each subsequence must begin at a sentence boundary;

each subsequence must end at a sentence boundary;

each subsequence must begin at a clause boundary;

each subsequence must end at a clause boundary;

each subsequence must be contiguous; or

each subsequence must include no more than a fourth predetermined number of contiguous sub-subsequences.

7. A computer program product comprising a computer readable storage medium having a computer readable program stored therein, wherein the computer readable program, when executed on a computing device, causes the computing device to:

receive an input question;

generate a candidate answer from a corpus of information, wherein the candidate answer has a supporting passage from the corpus of information;

divide the input question into a first sequence of tokens;

divide the supporting passage into a second sequence of tokens;

match question tokens from the first set of tokens to passage tokens from the second set of tokens, wherein matching the question tokens to the passage tokens comprises identifying a focus of the input question and matching the focus of the input question to an occurrence of the candidate answer in the supporting passage, wherein matching the focus of the input question to an occurrence of the candidate answer in the supporting passage comprises:

treating the focus of the question as a match for the candidate answer;

modifying the input question to replace text of the focus of the question with text of the candidate answer;

modifying the passage to replace text of the candidate answer with text of the focus of the question; or

modify the input question and the passage to replace text of the focus of the question and text of the candidate answer with a common reserved constant string;

identify a plurality of subsequences of tokens within the second sequence of tokens;

apply a paraphrase metric to compare the first sequence of tokens to each of the plurality of subsequences of tokens to generate a plurality of paraphrase metric scores; and

determine a confidence score for the candidate answer based on a highest paraphrase metric score within the plurality of paraphrase metric scores.

8. The computer program product of claim 7 , wherein dividing the input question into the first sequence of tokens comprises:

dividing the input question into a plurality of sequences of question tokens;

identifying a given sequence of question tokens within the plurality of sequences of question tokens having important content of the input question as the first sequence of tokens.

9. The computer program product of claim 7 , wherein identifying the plurality of subsequences of tokens within the second sequence of tokens comprises restricting the plurality of subsequences of tokens such that:

a number of tokens in each subsequence of tokens must be within a first predetermined number of a number of tokens in the first sequence of tokens;

each subsequence must contain at least a second predetermined number of tokens that match tokens in the first sequence of tokens;

each subsequence must contain at least a third predetermined number of non-stop-word tokens that match tokens in the first sequence of tokens;

each subsequence must contain the candidate answer;

each subsequence may not contain a sentence boundary;

each subsequence must begin at a sentence boundary;

each subsequence must end at a sentence boundary;

each subsequence must begin at a clause boundary;

each subsequence must end at a clause boundary;

each subsequence must be contiguous; or

each subsequence must include no more than a fourth predetermined number of contiguous sub-subsequences.

10. An apparatus comprising:

a processor; and

a memory coupled to the processor, wherein the memory comprises instructions which, when executed by the processor, cause the processor to:

receive an input question;

generate a candidate answer from a corpus of information, wherein the candidate answer has a supporting passage from the corpus of information;

divide the input question into a first sequence of tokens;

divide the supporting passage into a second sequence of tokens;

match question tokens from the first set of tokens to passage tokens from the second set of tokens, wherein matching the question tokens to the passage tokens comprises identifying a focus of the input question and matching the focus of the input question to an occurrence of the candidate answer in the supporting passage, wherein matching the focus of the input question to an occurrence of the candidate answer in the supporting passage comprises:

treating the focus of the question as a match for the candidate answer;

modifying the input question to replace text of the focus of the question with text of the candidate answer;

modifying the passage to replace text of the candidate answer with text of the focus of the question; or

modify the input question and the passage to replace text of the focus of the question and text of the candidate answer with a common reserved constant string;

identify a plurality of subsequences of tokens within the second sequence of tokens;

apply a paraphrase metric to compare the first sequence of tokens to each of the plurality of subsequences of tokens to generate a plurality of paraphrase metric scores; and

determine a confidence score for the candidate answer based on a highest paraphrase metric score within the plurality of paraphrase metric scores.

11. The apparatus of claim 10 , wherein dividing the input question into the first sequence of tokens comprises:

dividing the input question into a plurality of sequences of question tokens;

identifying a given sequence of question tokens within the plurality of sequences of question tokens having important content of the input question as the first sequence of tokens.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 22, 2014
From: LEVAS, ANTHONY T.; MURDOCK, JAMES W., IV; PRAGER, JOHN M.; SEGAL, BENJAMIN P.; WINKLER, TIMOTHY P.
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 034571/0058 →
Continuity (1)
Related Publication 20160179939A1 · Jun 23, 2016