# US 2017/0293677 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/0293677 A1
- Document ID: US20170293677A1
- Status: Published application
- Kind: A1
- Application number: 15/161,321
- Filed: 2016-05-23
- 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/US20170293677A1

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

A method for performing a textual query by a search engine, comprising:
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 2 (depends on 1)

The method of claim 1, further comprising:
ranking the received search results relative to one another.

### Claim 3 (depends on 2)

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

### Claim 4 (depends on 2)

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

The method of claim 2, wherein identifying the polarity value 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 polarity value of the electronic input text based on the detecting.

### Claim 6 (depends on 2)

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

### Claim 7 (depends on 1)

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