# US 2017/0293680 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/0293680 A1
- Document ID: US20170293680A1
- Status: Published application
- Kind: A1
- Application number: 15/162,643
- Filed: 2016-05-24
- 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/US20170293680A1

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

A method for detecting polarity of a text element in a natural language processing (NLP) system, comprising:
receiving an electronic input text;
identifying a polarity value of the input text based on an element of the element input text; and
generating a modified electronic input text by replacing the element with a lexical substitute.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
performing a query based on 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 3 (depends on 2)

The method of claim 2, further comprising:
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 4 (depends on 1)

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

### Claim 5 (depends on 1)

The method of claim 1, 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.

### Claim 6 (depends on 1)

The method of claim 1, wherein identifying the polar 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.

### Claim 7 (depends on 6)

The method of claim 6, further comprising:
associating the polarity value of the at least one polar word with the polarity value of the electronic input text.

### Claim 8 (depends on 1)

The method of claim 1, wherein the polar value of the electronic input text is based on a polarity value of a word in the electronic input text having a defined antonym.
