# US 2022/0284193 A1 · Robust dialogue utterance rewriting as sequence tagging

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

- Number: US 2022/0284193 A1
- Document ID: US20220284193A1
- Status: Published application
- Kind: A1
- Application number: 17/192,260
- Filed: 2021-03-04
- Published: 2022-09-08
- Earliest claimed: 2021-03-04
- Assignees: Tencent America LLC
- Applicants: Tencent America LLC
- Inventors: Linfeng SONG
- Web page: https://patentgrep.com/patent/US20220284193A1

## CPC

- G06F 40/35: Discourse or dialogue representation
- G06F 40/166: Editing, e.g. inserting or deleting
- G06F 40/216: using statistical methods
- G06F 40/279: Recognition of textual entities
- G06F 40/284: Lexical analysis, e.g. tokenisation or collocates
- G06F 40/30: Semantic analysis
- G06F 40/44: Statistical methods, e.g. probability models
- G06F 40/56: Natural language generation
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method, computer program, and computer system is provided for representing multi-turn conversations. Data corresponding to a conversation having one or more utterances is received, contextual representations are identified for the one or more utterances, a span corresponding to the identified contextual representations is determined, and the one or more utterances are rewritten based on maximizing a probability associated with the determined span.

## Claims

### Claim 1

A method of representing multi-turn conversations, executable by a processor, comprising:
receiving data corresponding to a conversation having one or more utterances;
identifying contextual representations for the one or more utterances;
determining a span corresponding to the identified contextual representations; and
rewriting the one or more utterances based on maximizing a probability associated with the determined span.

### Claim 2 (depends on 1)

The method of claim 1, wherein the one or more utterance is rewritten based on recovering an omission of one or more words from the conversation.

### Claim 3 (depends on 1)

The method of claim 1, wherein the one or more utterance is rewritten based on recovering a co-reference corresponding to one or more words from the conversation.

### Claim 4 (depends on 1)

The method of claim 1, wherein the rewriting the one or more utterances comprises generating a candidate sentence corresponding to the utterances.

### Claim 5 (depends on 4)

The method of claim 4, further comprising generating the candidate sentence based on sampling tags at one or more positions of the one or more utterances.

### Claim 6 (depends on 5)

The method of claim 5, wherein the candidate sentence is generated based on minimizing a tagging loss value associated with the sampled tags.

### Claim 7 (depends on 1)

The method of claim 1, wherein the contextual representations are determined by a Bidirectional Encoder Representation from Transformers (BERT) encoder.

### Claim 8

A computer system for representing multi-turn conversations, the computer system comprising:
one or more computer-readable non-transitory storage media configured to store computer program code; and
one or more computer processors configured to access said computer program code and operate as instructed by said computer program code, said computer program code including:
receiving code configured to cause the one or more computer processors to receive data corresponding to a conversation having one or more utterances;
identifying code configured to cause the one or more computer processors to identify contextual representations for the one or more utterances;
determining code configured to cause the one or more computer processors to determine a span corresponding to the identified contextual representations; and
rewriting code configured to cause the one or more computer processors to rewrite the one or more utterances based on maximizing a probability associated with the determined span.

### Claim 9 (depends on 8)

The computer system of claim 8, wherein the one or more utterance is rewritten based on recovering an omission of one or more words from the conversation.

### Claim 10 (depends on 8)

The computer system of claim 8, wherein the one or more utterance is rewritten based on recovering a co-reference corresponding to one or more words from the conversation.

### Claim 11 (depends on 8)

The computer system of claim 8, wherein the rewriting the one or more utterances comprises generating a candidate sentence corresponding to the utterances.

### Claim 12 (depends on 11)

The computer system of claim 11, further comprising generating code configured to cause the one or more computer processors to generate the candidate sentence based on sampling tags at one or more positions of the one or more utterances.

### Claim 13 (depends on 12)

The computer system of claim 12, wherein the candidate sentence is generated based on minimizing a tagging loss value associated with the sampled tags.

### Claim 14 (depends on 8)

The computer system of claim 8, wherein the contextual representations are determined by a Bidirectional Encoder Representation from Transformers (BERT) encoder.

### Claim 15

A non-transitory computer readable medium having stored thereon a computer program for representing multi-turn conversations, the computer program configured to cause one or more computer processors to:
receive data corresponding to a conversation having one or more utterances;
identify contextual representations for the one or more utterances;
determine a span corresponding to the identified contextual representations; and
rewrite the one or more utterances based on maximizing a probability associated with the determined span.

### Claim 16 (depends on 15)

The computer readable medium of claim 15, wherein the one or more utterance is rewritten based on recovering an omission of one or more words from the conversation.

### Claim 17 (depends on 15)

The computer readable medium of claim 15, wherein the one or more utterance is rewritten based on recovering a co-reference corresponding to one or more words from the conversation.

### Claim 18 (depends on 15)

The computer readable medium of claim 15, wherein the rewriting the one or more utterances comprises generating a candidate sentence corresponding to the utterances.

### Claim 19 (depends on 18)

The computer readable medium of claim 18, wherein the computer program is further configured to cause one or more computer processors to generate the candidate sentence based on sampling tags at one or more positions of the one or more utterances.

### Claim 20 (depends on 19)

The computer readable medium of claim 19, wherein the candidate sentence is generated based on minimizing a tagging loss value associated with the sampled tags.
