# US 11,120,060 B2 · Efficient resolution of syntactic patterns in question and answer (QA) pairs in an n-ary focus cognitive QA system

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 11,120,060 B2
- Document ID: US11120060B2
- Status: Granted
- Kind: B2
- Application number: 16/168,718
- Filed: 2018-10-23
- Published: 2020-04-23
- Granted: 2021-09-14
- Earliest claimed: 2018-10-23
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Stephen A. Boxwell; Keith G. Frost; Stanley J. Vernier; Kyle M. Brake
- Web page: https://patentgrep.com/patent/US11120060B2

## CPC

- G06F 16/316: {Indexing structures}
- G06F 16/3329: Natural language query formulation
- G06F 16/3335: {Syntactic pre-processing, e.g. stopword elimination, stemming}
- G06F 16/334: Query execution (filtering based on additional data G06F16/335)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments for processing questions based on equivalence classes in a cognitive question answering system. A plurality of syntactic representations of a plurality of questions asked of the cognitive question answering system are provided. A plurality of syntactic representations of a plurality of passages ingested by the cognitive question answering system are provided. Question focus to candidate passage pairs are mapped to form an equivalence class mapping, and the equivalence class mapping is used to determine an answer to one of the plurality of questions asked of the cognitive question answering system.

## Claims

### Claim 1

A method for processing questions based on equivalence classes in a cognitive question answering system, by a processor, comprising:
providing a plurality of syntactic representations of a plurality of questions asked of the cognitive question answering system;
providing a plurality of syntactic representations of a plurality of passages ingested by the cognitive question answering system;
mapping question focus to candidate passage pairs to form an equivalence class mapping, wherein, when forming the equivalence class mapping, those of the plurality of questions historically asked of the cognitive question answering system having a semantically equivalent question focus are mapped to semantically equivalent ones of the candidate passage pairs notwithstanding the equivalent ones of the candidate passage pairs are not syntactically identical to those of the plurality of questions, and wherein forming the equivalence class mapping further includes:
constructing a first map of the syntactic representations of the plurality of questions to equivalence set labels and slot indexes of the first map,
constructing a second map of the syntactic representations of the plurality of passages to sets of the equivalence set labels, and
constructing a third map of the syntactic representations of the plurality of passages to the equivalence set labels and the slot indexes for each entry of the second map, each entry comprising the given one of the plurality of passages and a given set of the equivalence set labels; and
utilizing the equivalence class mapping to determine an answer to one of the plurality of questions asked of the cognitive question answering system according to matching the one of the plurality of questions to those of the plurality of questions historically asked having the semantically equivalent question focus as identified in the equivalence class mapping.

### Claim 2 (depends on 1)

The method of claim 1, wherein, when forming the equivalence class mapping, each of the plurality of questions is mapped to a given set of the plurality of passages according to the syntactic representations.

### Claim 3 (depends on 1)

The method of claim 1, wherein for an input query:
the equivalence set labels are identified that fit a given one of the plurality of questions of the input query; and
the given syntactic representation for the given one of the plurality of questions, the identified equivalence set labels of the given one of the plurality of questions, and the slot indexes are added to the first map.

### Claim 4 (depends on 3)

The method of claim 3, wherein for the input query:
a given one of the plurality of passages and an initially empty equivalence label set are added to the second map; and
each of the sets of equivalence set labels for the input query from the first map are added into the initially empty equivalence label set in the second map.

### Claim 5 (depends on 4)

The method of claim 4, wherein for each entry:
the equivalence set labels are identified that fit a given one of the plurality of passages; wherein only the equivalence set labels within the given set of the equivalence set labels within the given set of the equivalence set label are searched to perform the identification; and
the identified equivalence set labels of the given one of the plurality of passages and the slot indexes are added to the third map.

### Claim 6 (depends on 5)

The method of claim 5, further including, for each input query, forming an association between the first, second, and third maps and performing a syntactic grouping operation commensurate with the association to determine the answer to the one of the plurality of questions.

### Claim 7 (depends on 1)

The method of claim 1, wherein the mapping comprises a singleton map.

### Claim 8

A system for processing questions based on equivalence classes in a cognitive question answering system, comprising:
a processor executing instructions stored in a memory device; wherein the processor:
provides a plurality of syntactic representations of a plurality of questions asked of the cognitive question answering system;
provides a plurality of syntactic representations of a plurality of passages ingested by the cognitive question answering system;
maps question focus to candidate passage pairs to form an equivalence class mapping, wherein, when forming the equivalence class mapping, those of the plurality of questions historically asked of the cognitive question answering system having a semantically equivalent question focus are mapped to semantically equivalent ones of the candidate passage pairs notwithstanding the equivalent ones of the candidate passage pairs are not syntactically identical to those of the plurality of questions, and wherein forming the equivalence class mapping further includes:
constructing a first map of the syntactic representations of the plurality of questions to equivalence set labels and slot indexes of the first map,
constructing a second map of the syntactic representations of the plurality of passages to sets of the equivalence set labels, and
constructing a third map of the syntactic representations of the plurality of passages to the equivalence set labels and the slot indexes for each entry of the second map, each entry comprising the given one of the plurality of passages and a given set of the equivalence set labels; and
utilizes the equivalence class mapping to determine an answer to one of the plurality of questions asked of the cognitive question answering system according to matching the one of the plurality of questions to those of the plurality of questions historically asked having the semantically equivalent question focus as identified in the equivalence class mapping.

### Claim 9 (depends on 8)

The system of claim 8, wherein, when forming the equivalence class mapping, each of the plurality of questions is mapped to a given set of the plurality of passages according to the syntactic representations.

### Claim 10 (depends on 8)

The system of claim 8, wherein for an input query:
the equivalence set labels are identified that fit a given one of the plurality of questions of the input query; and
the given syntactic representation for the given one of the plurality of questions, the identified equivalence set labels of the given one of the plurality of questions, and the slot indexes are added to the first map.

### Claim 11 (depends on 10)

The system of claim 10, wherein for the input query:
a given one of the plurality of passages and an initially empty equivalence label set are added to the second map; and
each of the sets of equivalence set labels for the input query from the first map are added into the initially empty equivalence label set in the second map.

### Claim 12 (depends on 11)

The system of claim 11, wherein for each entry:
the equivalence set labels are identified that fit a given one of the plurality of passages; wherein only the equivalence set labels within the given set of the equivalence set labels within the given set of the equivalence set label are searched to perform the identification; and
the identified equivalence set labels of the given one of the plurality of passages and the slot indexes are added to the third map.

### Claim 13 (depends on 12)

The system of claim 12, wherein the processor, for each input query, forms an association between the first, second, and third maps and performs a syntactic grouping operation commensurate with the association to determine the answer to the one of the plurality of questions.

### Claim 14 (depends on 8)

The system of claim 8, wherein the mapping comprises a singleton map.

### Claim 15

A computer program product for processing questions based on equivalence classes in a cognitive question answering system, by a processor, the computer program product embodied on a non-transitory computer-readable storage medium having computer-readable program code portions stored therein, the computer-readable program code portions comprising:
an executable portion that provides a plurality of syntactic representations of a plurality of questions asked of the cognitive question answering system;
an executable portion that provides a plurality of syntactic representations of a plurality of passages ingested by the cognitive question answering system;
an executable portion that maps question focus to candidate passage pairs to form an equivalence class mapping, wherein, when forming the equivalence class mapping, those of the plurality of questions historically asked of the cognitive question answering system having a semantically equivalent question focus are mapped to semantically equivalent ones of the candidate passage pairs notwithstanding the equivalent ones of the candidate passage pairs are not syntactically identical to those of the plurality of questions, and wherein forming the equivalence class mapping further includes:
constructing a first map of the syntactic representations of the plurality of questions to equivalence set labels and slot indexes of the first map,
constructing a second map of the syntactic representations of the plurality of passages to sets of the equivalence set labels, and
constructing a third map of the syntactic representations of the plurality of passages to the equivalence set labels and the slot indexes for each entry of the second map, each entry comprising the given one of the plurality of passages and a given set of the equivalence set labels; and
an executable portion that utilizes the equivalence class mapping to determine an answer to one of the plurality of questions asked of the cognitive question answering system according to matching the one of the plurality of questions to those of the plurality of questions historically asked having the semantically equivalent question focus as identified in the equivalence class mapping.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein, when forming the equivalence class mapping, each of the plurality of questions is mapped to a given set of the plurality of passages according to the syntactic representations.

### Claim 17 (depends on 15)

The computer program product of claim 15, wherein for an input query:
the equivalence set labels are identified that fit a given one of the plurality of questions of the input query; and
the given syntactic representation for the given one of the plurality of questions, the identified equivalence set labels of the given one of the plurality of questions, and the slot indexes are added to the first map.

### Claim 18 (depends on 17)

The computer program product of claim 17, wherein for the input query:
a given one of the plurality of passages and an initially empty equivalence label set are added to the second map; and
each of the sets of equivalence set labels for the input query from the first map are added into the initially empty equivalence label set in the second map.

### Claim 19 (depends on 18)

The computer program product of claim 18, wherein for each entry:
the equivalence set labels are identified that fit a given one of the plurality of passages; wherein only the equivalence set labels within the given set of the equivalence set labels within the given set of the equivalence set label are searched to perform the identification; and
the identified equivalence set labels of the given one of the plurality of passages and the slot indexes are added to the third map.

### Claim 20 (depends on 19)

The computer program product of claim 19, further including an executable portion that, for each input query, forms an association between the first, second, and third maps and performs a syntactic grouping operation commensurate with the association to determine the answer to the one of the plurality of questions.

### Claim 21 (depends on 15)

The computer program product of claim 15, wherein the mapping comprises a singleton map.
