# US 2022/0284174 A1 · Correcting content generated by deep learning

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

- Number: US 2022/0284174 A1
- Document ID: US20220284174A1
- Status: Published application
- Kind: A1
- Application number: 17/591,161
- Filed: 2022-02-02
- Published: 2022-09-08
- Earliest claimed: 2021-03-03
- Assignees: Oracle International Corporation
- Applicants: Oracle International Corporation
- Inventors: Boris Galitsky
- Web page: https://patentgrep.com/patent/US20220284174A1

## CPC

- G06F 40/166: Editing, e.g. inserting or deleting
- G06F 40/237: Lexical tools
- G06F 40/253: Grammatical analysis; Style critique
- G06F 40/289: Phrasal analysis, e.g. finite state techniques or chunking
- G06F 40/30: Semantic analysis
- G06F 40/211: Syntactic parsing, e.g. based on context-free grammar [CFG] or unification grammars
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods for correcting raw text generated by deep learning techniques is disclosed. The methods may be performed by systems/computing devices described herein. Raw text previously generated by the deep learning techniques may be obtained. A search query can be generated from a raw text sentence of the raw text. The search query is executed against a knowledge base or a corpus of text to obtain a set of search results, the set of search results comprising a plurality of candidate true sentences that can potentially be utilized to correct one or more entities or phrases of the raw text sentence. A candidate true sentence is selected from the plurality and used to correct the raw text sentence. For example, at least one entity or phrase of the candidate true sentence can be used to replace a corresponding entity or phrase of the raw text sentence.

## Claims

### Claim 1

A computer-implemented method for correcting raw text generated by deep learning techniques, the computer-implemented method comprising:
obtaining the raw text generated by the deep learning techniques, the raw text comprising one or more raw text sentences;
generating a search query from a raw text sentence of the raw text;
executing the search query against a knowledge base or a corpus of text to obtain a set of search results, the set of search results comprising a plurality of candidate true sentences that can potentially be utilized to correct one or more entities or phrases of the raw text sentence;
selecting a candidate true sentence from the plurality of candidate true sentences based at least in part on executing a generalization process using corresponding pairs of the raw text sentence and each of the plurality of candidate true sentences;
generating a corrected text sentence from the raw text sentence based at least in part on replacing at least one entity or phrase of the raw text sentence with a corresponding entity or phrase of the selected candidate true sentence; and
providing corrected text generated from the raw text, the corrected text comprising the corrected text sentence.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein executing the generalization process comprises generating a syntactic alignment score and a semantic alignment score for each candidate true sentence based on executing a syntactic-semantic alignment algorithm configured to determine syntactic and semantic alignment between the raw text sentence and each of the plurality of candidate true sentences, the syntactic alignment score quantifying a degree to which a syntactic representation of the raw text sentence and a syntactic representation of a respective candidate true statement agree, the semantic alignment score quantifying a degree to which a semantic representation of the raw text sentence and the semantics of the respective candidate true statement agree.

### Claim 3 (depends on 2)

The computer-implemented method of claim 2, wherein selecting the candidate true sentence from the plurality of candidate true sentences includes selecting the candidate true sentence having: 1) a highest syntactic alignment score of syntactic alignment scores corresponding to the plurality of candidate true sentences, and/or 2) a highest semantic alignment score of the plurality of candidate true sentences.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, further comprising validating the corrected text sentence, wherein validating the corrected text sentence comprises:
generating a first communicative discourse tree for the raw text sentence;
generating a second communicative discourse tree for the corrected text sentence; and
identifying an alignment between the first communicative discourse tree and the second communicative discourse tree.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein executing the search query against the knowledge base or the corpus of text comprises providing the search query to a search application programming interface corresponding to an online search engine.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, further comprising:
generating a second search query from a second raw text sentence of the raw text;
executing the second search query against the knowledge base or the corpus of text to obtain a second set of search results, the second set of search results comprising a second plurality of candidate true sentences for correcting an entity or phrase of the second raw text sentence;
selecting a particular candidate true sentence from the second plurality of candidate true sentences based at least in part on executing the generalization process using corresponding pairs of the second raw text sentence and each of the second plurality of candidate true sentences; and
generating a second corrected text sentence from the second raw text sentence based at least in part on replacing at least one entity or phrase of the second raw text sentence with a corresponding entity or phrase of the particular candidate true sentence selected, wherein the corrected text further comprises the second corrected text sentence.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein generating the search query comprises at least one of: 1) generating a discourse tree of the raw text sentence, the discourse tree comprising a plurality of nodes, each nonterminal node representing a rhetorical relationship between two sentence fragments of the raw text sentence and each terminal node of the nodes of the discourse tree being associated with a sentence fragment of the raw text sentence, or 2) generating a communicative discourse tree of the raw text sentence, the communicative discourse tree comprising the discourse tree, wherein terminal node corresponding to a respective sentence fragment of the raw text sentence is further associated with a verb signature.

### Claim 8

A computing device, comprising:
one or more processors; and
one or more memories storing computer-executable instructions for correcting raw text generated by deep learning techniques, that, when executed by the one or more processors, cause the computing device to:
obtain the raw text generated by the deep learning techniques, the raw text comprising one or more raw text sentences;
generate a search query from a raw text sentence of the raw text;
execute the search query against a knowledge base or a corpus of text to obtain a set of search results, the set of search results comprising a plurality of candidate true sentences that can potentially be utilized to correct one or more entities or phrases of the raw text sentence;
select a candidate true sentence from the plurality of candidate true sentences based at least in part on executing a generalization process using corresponding pairs of the raw text sentence and each of the plurality of candidate true sentences;
generate a corrected text sentence from the raw text sentence based at least in part on replacing at least one entity or phrase of the raw text sentence with a corresponding entity or phrase of the selected candidate true sentence; and
provide corrected text generated from the raw text, the corrected text comprising the corrected text sentence.

### Claim 9 (depends on 8)

The computing device of claim 8, wherein executing the generalization process causes the computing device to generate a syntactic alignment score and a semantic alignment score for each candidate true sentence based on executing a syntactic-semantic alignment algorithm, the syntactic alignment score quantifying a degree to which a syntactic representation of the raw text sentence and a syntactic representation of a respective candidate true statement agree, the semantic alignment score quantifying a degree to which a semantic representation of the raw text sentence and a semantic representation of the respective candidate true statement agree.

### Claim 10 (depends on 9)

The computing device of claim 9, wherein selecting the candidate true sentence from the plurality of candidate true sentences includes selecting the candidate true sentence having: 1) a highest syntactic alignment score of syntactic alignment scores corresponding to the plurality of candidate true sentences, and/or 2) a highest semantic alignment score of the plurality of candidate true sentences.

### Claim 11 (depends on 8)

The computing device of claim 8, wherein executing the instructions further cause the computing device to validate the corrected text sentence, wherein validating the corrected text sentence causes the computing device to:
generate a first communicative discourse tree for the raw text sentence;
generate a second communicative discourse tree for the corrected text sentence; and
identify an alignment between the first communicative discourse tree and the second communicative discourse tree.

### Claim 12 (depends on 8)

The computing device of claim 8, wherein executing the search query against the knowledge base or the corpus of text causes the computing device to provide the search query to a search application programming interface corresponding to an online search engine.

### Claim 13 (depends on 8)

The computing device of claim 8, wherein executing the instructions further causes the computing device to:
generate a second search query from a second raw text sentence of the raw text;
execute the second search query against the knowledge base or the corpus of text to obtain a second set of search results, the second set of search results comprising a second plurality of candidate true sentences for correcting an entity or phrase of the second raw text sentence;
select a particular candidate true sentence from the second plurality of candidate true sentences based at least in part on executing the generalization process using corresponding pairs of the second raw text sentence and each of the second plurality of candidate true sentences; and
generate a second corrected text sentence from the second raw text sentence based at least in part on replacing at least one entity or phrase of the second raw text sentence with a corresponding entity or phrase of the particular candidate true sentence selected, wherein the corrected text further comprises the second corrected text sentence.

### Claim 14 (depends on 8)

The computing device of claim 8, wherein generating the search query comprises at least one of: 1) generating a discourse tree of the raw text sentence, the discourse tree comprising a plurality of nodes, each nonterminal node representing a rhetorical relationship between two sentence fragments of the raw text sentence and each terminal node of the nodes of the discourse tree being associated with a sentence fragment of the raw text sentence, or 2) generating a communicative discourse tree of the raw text sentence, the communicative discourse tree comprising the discourse tree, wherein terminal node corresponding to a respective sentence fragment of the raw text sentence is further associated with a verb signature.

### Claim 15

A non-transitory computer readable storage medium storing instructions for correcting raw text generated by deep learning techniques, that, when executed by one or more processors of a computing device, cause the computing device to:
obtain the raw text generated by the deep learning techniques, the raw text comprising one or more raw text sentences;
generate a search query from a raw text sentence of the raw text;
execute the search query against a knowledge base or a corpus of text to obtain a set of search results, the set of search results comprising a plurality of candidate true sentences that can potentially be utilized to correct one or more entities or phrases of the raw text sentence;
select a candidate true sentence from the plurality of candidate true sentences based at least in part on executing a generalization process using corresponding pairs of the raw text sentence and each of the plurality of candidate true sentences;
generate a corrected text sentence from the raw text sentence based at least in part on replacing at least one entity or phrase of the raw text sentence with a corresponding entity or phrase of the selected candidate true sentence; and
provide corrected text generated from the raw text, the corrected text comprising the corrected text sentence.

### Claim 16 (depends on 15)

The non-transitory computer readable storage medium of claim 15, wherein executing the generalization process causes the computing device to generate a syntactic alignment score and a semantic alignment score for each candidate true sentence based on executing a syntactic-semantic alignment algorithm, the syntactic alignment score quantifying a degree to which a syntactic representation of the raw text sentence and a syntactic representation of a respective candidate true statement agree, the semantic alignment score quantifying a degree to which a semantic representation of the raw text sentence and a semantic representation of the respective candidate true statement agree.

### Claim 17 (depends on 16)

The non-transitory computer readable storage medium of claim 16, wherein selecting the candidate true sentence from the plurality of candidate true sentences includes selecting the candidate true sentence having: 1) a highest syntactic alignment score of syntactic alignment scores corresponding to the plurality of candidate true sentences, and/or 2) a highest semantic alignment score of the plurality of candidate true sentences.

### Claim 18 (depends on 15)

The non-transitory computer readable storage medium of claim 15, wherein executing the instructions further cause the computing device to validate the corrected text sentence, wherein validating the corrected text sentence causes the computing device to:
generate a first communicative discourse tree for the raw text sentence;
generate a second communicative discourse tree for the corrected text sentence; and
identify an alignment between the first communicative discourse tree and the second communicative discourse tree.

### Claim 19 (depends on 15)

The non-transitory computer readable storage medium of claim 15, wherein executing the search query against the knowledge base or the corpus of text causes the computing device to provide the search query to a search application programming interface corresponding to an online search engine.

### Claim 20 (depends on 15)

The non-transitory computer readable storage medium of claim 15, wherein generating the search query comprises at least one of: 1) generating a discourse tree of the raw text sentence, the discourse tree comprising a plurality of nodes, each nonterminal node representing a rhetorical relationship between two sentence fragments of the raw text sentence and each terminal node of the nodes of the discourse tree being associated with a sentence fragment of the raw text sentence, or 2) generating a communicative discourse tree of the raw text sentence, the communicative discourse tree comprising the discourse tree, wherein terminal node corresponding to a respective sentence fragment of the raw text sentence is further associated with a verb signature.
