# US 10,956,463 B2 · System and method for generating improved search queries from natural language questions

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

- Number: US 10,956,463 B2
- Document ID: US10956463B2
- Status: Granted
- Kind: B2
- Application number: 16/252,103
- Filed: 2019-01-18
- Published: 2019-05-23
- Granted: 2021-03-23
- Earliest claimed: 2016-11-22
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Charles E. Beller; Sean L. Bethard; William G. Dubyak; Alexander C. Tonetti; Sean T. Thatcher; Julie T. Yu
- Web page: https://patentgrep.com/patent/US10956463B2

## CPC

- G06F 16/3329: Natural language query formulation
- G06F 16/3331: Query processing
- G06F 16/34: Browsing; Visualisation therefor (browsing or visualisation for clustering or classification G06F16/358)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments can provide a computer implemented method, in a data processing system comprising a processor and a memory comprising instructions which are executed by the processor to cause the processor to implement an improved search query generation system, the method comprising inputting a natural language question; parsing the natural language question into a parse tree; identifying argument positions comprising one or more argument position terms; for each argument position: comparing a head term's discriminator score against a threshold discriminator score; and if the head term surpasses the threshold discriminator score, adding the head term as a required term to an improved search query; and outputting the improved search query.

## Claims

### Claim 1

A computer implemented method, in a data processing system comprising a processor and a memory comprising instructions which are executed by the processor to cause the processor to implement an improved search query generation system, the method comprising:
inputting a natural language question;
parsing the natural language question into a parse tree;
identifying argument positions comprising one or more argument position terms;
for each argument position term:
comparing a head term's discriminator score against a threshold discriminator score; and
if the head term surpasses the threshold discriminator score, adding the head term as a required term to an improved search query;
if the head term does not surpass the threshold discriminator score, considering one or more modifiers within the argument position;
for each modifier:
if the modifiers do not surpass the modifier threshold discriminator score, considering one or more bigrams, wherein the one or more bigrams are generated by combining the head term and one modifier;
for each bigram:
if the bigram's discriminator score surpasses a bigram threshold discriminator score, adding the bigram as a required span-near term to the improved search query; and
outputting the improved search query.

### Claim 2 (depends on 1)

The method as recited in claim 1, further comprising:
for each argument position term, retrieving the discriminator score from a pre-calculated discriminator score repository, wherein the discriminator score is pre-calculated through calculation of a term frequency-inverse document frequency value.

### Claim 3 (depends on 1)

The method as recited in claim 1, further comprising:
pre-determining the threshold discriminator score, modifier threshold discriminator score, and bigram threshold discriminator score.

### Claim 4 (depends on 1)

The method as recited in claim 1, further comprising:
for each argument position term, calculating a discriminator score through calculation of a term frequency-inverse document frequency value.

### Claim 5 (depends on 1)

The method as recited in claim 1, further comprising:
for each argument position term, receiving a pre-calculated discriminator score derived through calculation of a term frequency-inverse document frequency value.

### Claim 6 (depends on 1)

The method as recited in claim 1, further comprising:
using the improved search query as input in a cognitive system.

### Claim 7

A computer program product for improved search query generation, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processor to cause the processor to:
input a natural language question;
parse the natural language question into a parse tree;
identify argument positions comprising one or more argument position terms;
for each argument position term:
compare a head term's discriminator score against a threshold discriminator score; and
if the head term surpasses the threshold discriminator score, add the head term as a required term to an improved search query;
if the head term does not surpass the threshold discriminator score, considering one or more modifiers within the argument position;
for each modifier:
if the modifiers do not surpass the modifier threshold discriminator score, consider one or more bigrams, wherein the one or more bigrams are generated by combining the head term and one modifier;
for each bigram:
if the bigram's discriminator score surpasses a bigram threshold discriminator score, add the bigram as a required span-near term to the improved search query; and
output the improved search query.

### Claim 8 (depends on 7)

The computer program product as recited in claim 7, wherein the processor is further caused to:
for each argument position term, retrieve the discriminator score from a pre-calculated discriminator score repository, wherein the discriminator score is pre-calculated through calculation of a term frequency-inverse document frequency value.

### Claim 9 (depends on 7)

The computer program product as recited in claim 7, wherein the processor is further caused to:
pre-determine the threshold discriminator score, modifier threshold discriminator score, and bigram threshold discriminator score.

### Claim 10 (depends on 9)

The computer program product as recited in claim 9, wherein the processor is further caused to:
for each argument position term, calculate a discriminator score through calculation of a term frequency-inverse document frequency value.

### Claim 11 (depends on 7)

The computer program product as recited in claim 7, wherein the processor is further caused to:
for each argument position term, receive a pre-calculated discriminator score derived through calculation of a term frequency-inverse document frequency value.

### Claim 12 (depends on 7)

The computer program product as recited in claim 7, wherein the processor is further caused to:
using the improved search query as input in a cognitive system.

### Claim 13

A system for improved search query generation, comprising:
an improved search query generation processor configured to:
input a natural language question;
parse the natural language question into a parse tree;
identify argument positions comprising one or more a plurality of argument position terms;
for each argument position term:
compare a head term's discriminator score against a threshold discriminator score; and
if the head term surpasses the threshold discriminator score, add the head term as a required term to an improved search query;
if the head term does not surpass the threshold discriminator score, considering one or more modifiers within the argument position;
for each modifier:
if the modifiers do not surpass the modifier threshold discriminator score, consider one or more bigrams, wherein the one or more bigrams are generated by combining the head term and one modifier;
for each bigram:
if the bigram's discriminator score surpasses a bigram threshold discriminator score, add the bigram as a required span-near term to the improved search query; and
output the improved search query.

### Claim 14 (depends on 13)

The system as recited in claim 13, wherein the improved search query generation processor is further configured to:
for each argument position term, retrieve the discriminator score from a pre-calculated discriminator score repository, wherein the discriminator score is pre-calculated through calculation of a term frequency-inverse document frequency value.

### Claim 15 (depends on 13)

The system as recited in claim 13, wherein the improved search query generation processor is further configured to:
for each argument position term, calculate a discriminator score through calculation of a term frequency-inverse document frequency value.

### Claim 16 (depends on 13)

The system as recited in claim 13, wherein the improved search query generation processor is further configured to:
for each argument position term, receive a pre-calculated discriminator score derived through calculation of a term frequency-inverse document frequency value.

### Claim 17 (depends on 13)

The system as recited in claim 13, wherein the improved search query generation processor is further configured to:
using the improved search query as input in a cognitive system.
