# US 2017/0293679 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/0293679 A1
- Document ID: US20170293679A1
- Status: Published application
- Kind: A1
- Application number: 15/161,333
- 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/US20170293679A1

## CPC

- G06F 16/3344: {using natural language analysis}
- G06F 16/24522: {Translation of natural language queries to structured queries}
- G06F 16/24578: {using ranking}
- G06F 16/3329: Natural language query formulation
- G06F 16/337: {Profile generation, learning or modification}
- G06F 16/353: into predefined classes
- G06F 40/284: Lexical analysis, e.g. tokenisation or collocates
- G06F 40/30: Semantic analysis
- G06N 5/01: Dynamic search techniques; Heuristics; Dynamic trees; Branch-and-bound
- 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 processing a natural language question in a computing system, comprising:
identifying an electronic text as a polar question having a polarity value;
selecting at least one pivot word in the polar question for replacement with a lexical substitute word, whereby replacing the at least one pivot word in the polar question with the lexical substitute word flips the polarity value of the polar question; and
generating a flipped polar question by replacing the selected pivot word with the corresponding lexical substitute word.

### Claim 2 (depends on 1)

The method of claim 1, wherein identifying an electronic text as a polar question comprises:
detecting a polar word in the electronic text based on the polar word matching at least one criterion for a polar term; and
identifying the electronic text as a polar question based on the detecting.

### Claim 3 (depends on 1)

The method of claim 1, wherein selecting at least one pivot word in the polar question for replacement with a lexical substitute comprises:
generating a predicate-argument structure (PAS) for the polar question;
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;
selecting the at least one pivot 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 4 (depends on 1)

The method of claim 1, further comprising:
generating an additional flipped polar question by replacing the selected pivot word with another lexical substitute word.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
selecting at least one additional pivot word in the polar question for replacement with a corresponding lexical substitute word; and
generating an additional flipped polar question by replacing the additional pivot word with the corresponding lexical substitute word.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
querying a text corpus using at least one term in the flipped polar question;
receiving an evidence passage in response to the query; and
associating the received evidence passage with the flipped polar question.

### Claim 7 (depends on 6)

The method of claim 6, further comprising:
providing the flipped polar question and the evidence passage to a processing stage in a natural language processing pipeline.

### Claim 8 (depends on 6)

The method of claim 6, further comprising:
assigning a score to the evidence passage based on the passage meeting a set of query criteria.

### Claim 9 (depends on 8)

The method of claim 8, wherein assigning a score comprises:
processing the evidence passage using a scorer in a natural language processing pipeline.

### Claim 10 (depends on 8)

The method of claim 8, further comprising:
selecting an additional pivot word in the polar question;
substituting the additional pivot word with the lexical substitute word to generate an additional flipped polar question;
receiving an additional candidate answer in response to querying a text corpus, wherein query terms used in the querying are selected based at least on the additional flipped polar question;
querying a text corpus using at least one term in the additional flipped polar question;
receiving an additional candidate answer in response to the query;
generating an additional hypothesis comprising a pairing of the additional flipped polar question and the additional candidate answer; and
assigning a score to the additional candidate answer.

### Claim 11 (depends on 10)

The method of claim 10, further comprising:
generating an answer based on comparing the assigned score of the candidate answer to the assigned score of the additional candidate answer.

### Claim 12 (depends on 11)

The method of claim 11, wherein generating an answer further comprises:
processing a plurality of pairs of a question and an answer using a merging and ranking stage of a natural language processing pipeline, wherein the plurality of pairs comprise at least one of the polar question and the additional polar question.

### Claim 13 (depends on 1)

The method of claim 1, wherein at least one definition associated with the pivot word is defined to be an opposite of at least one definition associated with the lexical substitute word.

### Claim 14 (depends on 1)

The method of claim 1, wherein the polarity value corresponds to at least one of a yes or no answer.

### Claim 15 (depends on 1)

The method of claim 1, wherein selecting the at least one pivot word in the polar question for replacement with a corresponding lexical substitute word comprises:
receiving a ranked set of one or more candidate pivot words based on a machine learning model, the ranked set comprising n candidate pivot words; and
generating a plurality of flipped polar questions by replacing at least one candidate pivot word with a lexical substitute word.

### Claim 16 (depends on 1)

The method of claim 1, further comprising:
generating an answer to the polar question.

### Claim 17 (depends on 16)

The method of claim 16, wherein generating an answer to the polar question comprises:
scoring at least the polar question and at least one flipped polar question to generate a set of score vectors;
merging the score vectors;
analyzing the merged score vectors to a model generated by a machine learning (ML) engine; and
generating the answer based on the analyzing.
