# US 2017/0293651 A1 · Natural language processing based on textual polarity

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

- Number: US 2017/0293651 A1
- Document ID: US20170293651A1
- Status: Published application
- Kind: A1
- Application number: 15/091,781
- Filed: 2016-04-06
- Published: 2017-10-12
- Earliest claimed: 2016-04-06
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Branimir K. Boguraev; Bharath Dandala; Lakshminarayanan Krishnamurthy; Benjamin P. Segal
- Web page: https://patentgrep.com/patent/US20170293651A1

## CPC

- G06F 16/243: {Natural language query formulation}
- G06F 16/2455: Query execution
- G06F 16/24578: {using ranking}
- G06F 16/252: {between a Database Management System and a front-end application}
- G06F 16/334: Query execution (filtering based on additional data G06F16/335)
- G06F 16/3344: {using natural language analysis}
- G06F 16/951: Indexing; Web crawling techniques
- G06F 16/953: Querying, e.g. by the use of web search engines
- G06F 40/284: Lexical analysis, e.g. tokenisation or collocates
- G06N 5/025: Extracting rules from data
- G06N 20/00: Machine learning
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Natural language processing (NLP) with awareness of textual polarity. An NLP system, such as a search engine or a Question-Answering (QA) system receives input text for processing. The input text may be a text fragment, a search phrase, a question having a general type, or a polar question having a yes or no answer. The NLP system identifies textual polarity and provides responses to the input text (for example, in answer form) based on identifying evidence whose selection, scoring, and processing, is informed by the textual polarity of the input text, and the textual polarity of candidate evidence passages.

## Claims

### Claim at position 1

-7. (canceled)

### Claim 8

A computer program product for performing a textual query by a search engine, comprising a non-transitory tangible storage device having program code embodied therewith, the program code executable by a processor of a computer to perform a method, the method comprising:
receiving, by the processor, an electronic input text;
identifying, by the processor, a polarity value of the electronic input text based on an element of the electronic input text;
generating, by the processor, a modified electronic input text by replacing the element with a lexical substitute;
searching, by the processor, a database using at least one portion of the electronic input text or the modified electronic input text, or both, as a query; and
receiving, by the processor, search results based on the searching.

### Claim 9 (depends on 8)

The computer program product of claim 8, the method further comprising:
ranking, by the processor, the received search results relative to one another.

### Claim 10 (depends on 9)

The computer program product of claim 9, wherein the ranking is based on the polarity value of the electronic input text relative to polarity values of the received search results.

### Claim 11 (depends on 9)

The computer program product of claim 9, further comprising:
excluding, by the processor, from search results at least one search result having a polarity value that is opposite to the polarity value of the electronic input text.

### Claim 12 (depends on 9)

The computer program product of claim 9, wherein identifying the polarity value of the electronic input text comprises:
detecting, by the processor, a polar word in the electronic input text based on the polar word matching at least one criterion for a polar term; and
identifying, by the processor, the polarity value of the electronic input text based on the detecting.

### Claim 13 (depends on 9)

The computer program product of claim 9, wherein identifying the polarity value of the electronic input text is based on:
generating, by the processor, a predicate-argument structure (PAS) for the electronic input text;
comparing, by the processor, a pattern in the PAS to one or more patterns in a set of pattern matching rules, the set of pattern matching rules comprising predetermined PAS patterns; and
identifying, by the processor, at least one polar word based on the comparing resulting in a match between the pattern in the PAS to at least one of the one or more patterns in the set of pattern matching rules.

### Claim 14 (depends on 8)

The computer program product of claim 8, further comprising:
querying a database using one or more words in the electronic input text;
receiving one or more candidate passages in response to the query; and
scoring the one or more candidate passages.

### Claim 15

A computer system for performing a textual query by a search engine, comprising:
one or more computer devices each having one or more processors and one or more tangible storage devices; and
a program embodied on at least one of the one or more storage devices, the program having a plurality of program instructions for execution by the one or more processors, the program instructions comprising instructions for:
receiving an electronic input text;
identifying a polarity value of the electronic input text based on an element of the electronic input text;
generating a modified electronic input text by replacing the element with a lexical substitute;
searching a database using at least one portion of the electronic input text or the modified electronic input text, or both, as a query; and
receiving search results based on the searching.

### Claim 16 (depends on 15)

The system of claim 15, further comprising instructions for:
ranking the received search results relative to one another.

### Claim 17 (depends on 16)

The system of claim 16, wherein the ranking is based on the polarity value of the electronic input text relative to polarity values of the received search results.

### Claim 18 (depends on 16)

The system of claim 16, further comprising instructions for:
excluding from search results at least one search result having a polarity value that is opposite to the polarity value of the electronic input text.

### Claim 19 (depends on 16)

The system of claim 16, wherein instructions for identifying the polarity value of the electronic input text comprise instructions for:
detecting a polar word in the electronic input text based on the polar word matching at least one criterion for a polar term; and
identifying the polarity value of the electronic input text based on the detecting.

### Claim 20 (depends on 16)

The system of claim 16, wherein identifying the polarity value of the electronic input text is based on:
generating a predicate-argument structure (PAS) for the electronic input text;
comparing a pattern in the PAS to one or more patterns in a set of pattern matching rules, the set of pattern matching rules comprising predetermined PAS patterns; and
identifying at least one polar word based on the comparing resulting in a match between the pattern in the PAS to at least one of the one or more patterns in the set of pattern matching rules.
