# US 2017/0293621 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/0293621 A1
- Document ID: US20170293621A1
- Status: Published application
- Kind: A1
- Application number: 15/091,790
- 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/US20170293621A1

## CPC

- G06F 16/24578: {using ranking}
- G06F 16/2455: Query execution
- G06F 16/3329: Natural language query formulation
- G06F 16/3344: {using natural language analysis}
- G06F 40/30: Semantic analysis
- G06F 40/40: Processing or translation of natural language (natural language analysis G06F40/20; semantic analysis G06F40/30)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## 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

-8. (canceled)

### Claim 9

A computer program product for detecting polarity of a text element in a natural language processing (NLP) system, 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, a electronic input text;
identifying, by the processor, a polarity value of the electronic input text based on an element of the electronic input text; and
generating, by the processor, a modified electronic input text by replacing the element with a lexical substitute.

### Claim 10 (depends on 9)

The computer program product of claim 9, further comprising:
performing a query, by the processor, based on one or more terms in the electronic input text and the modified electronic input text;
retrieving, by the processor, a plurality of evidence passages based on the query; and
scoring, by the processor, respective sets of the plurality of evidence passages relative to the electronic input text or the modified electronic input text.

### Claim 11 (depends on 10)

The computer program product of claim 10, the method further comprising:
determining, by the processor, polarity values of the plurality of evidence passages, wherein scoring the plurality of evidence passages is based at least on a comparison of respective sets of the polarity values of the plurality of evidence passages relative to the electronic input text or the modified electronic input text.

### Claim 12 (depends on 9)

The computer program product of claim 9, wherein the NLP system comprises an NLP processing pipeline having a plurality of processing stages.

### Claim 13 (depends on 9)

The computer program product of claim 9, wherein identifying the polarity 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 polar value of the electronic input text based on the detecting.

### Claim 14 (depends on 9)

The computer program product of claim 9, wherein identifying the polar 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 15 (depends on 14)

The computer program product of claim 14, the method further comprising:
associating, by the processor, the polarity value of the at least one polar word with the polarity value of the electronic input text.

### Claim 16

A computer system for detecting polarity of a text element in a natural language processing (NLP) system, 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; and
generating a modified electronic input text by replacing the element with a lexical substitute.

### Claim 17 (depends on 16)

The system of claim 16, the program instructions further comprising instructions for:
performing a query based on one or more terms in the electronic input text and the modified electronic input text;
retrieving a plurality of evidence passages based on the query; and
scoring respective sets of the plurality of evidence passages relative to the electronic input text or the modified electronic input text.

### Claim 18 (depends on 17)

The system of claim 17, the program instructions further comprising instructions for:
determining polarity values of the plurality of evidence passages, wherein scoring the plurality of evidence passages is based at least on a comparison of respective sets of the polarity values of the plurality of evidence passages relative to the electronic input text or the modified electronic input text.

### Claim 19 (depends on 16)

The system of claim 16, wherein the NLP system comprises an NLP processing pipeline having a plurality of processing stages.

### Claim 20 (depends on 16)

The system of claim 16, wherein identifying the polarity of the electronic input text comprises:
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 polar value of the electronic input text based on the detecting.
