# US 2021/0081610 A1 · Method and apparatus for processing sequence

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

- Number: US 2021/0081610 A1
- Document ID: US20210081610A1
- Status: Published application
- Kind: A1
- Application number: 16/844,362
- Filed: 2020-04-09
- Published: 2021-03-18
- Earliest claimed: 2019-09-18
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Hwidong NA; Min-Joong LEE
- Web page: https://patentgrep.com/patent/US20210081610A1

## CPC

- G06F 40/279: Recognition of textual entities
- G06F 40/205: Parsing
- G06F 40/30: Semantic analysis
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A sequence processing method and apparatus are provided. The sequence processing method includes determining a word of a first R-node corresponding to a root node based on an input sequence, generating first I-nodes that are connected to the first R-node and include relative position information with respect to the word of the first R-node, determining a word of a second R-node to correspond to each of the first I-nodes, and determining an output sequence corresponding to the input sequence based on the determined words.

## Claims

### Claim 1

A sequence processing method comprising:
determining a word of a first R-node corresponding to a root node based on an input sequence;
generating first I-nodes that are connected to the first R-node and include relative position information with respect to the word of the first R-node;
determining a word of a second R-node to correspond to each of the first I-nodes; and
determining an output sequence corresponding to the input sequence based on the determined words.

### Claim 2 (depends on 1)

The sequence processing method of claim 1, wherein the determining of the word of the first R-node comprises determining the word of the first R-node to minimize a number of times an R-node and an I-node are generated for determination of the output sequence.

### Claim 3 (depends on 1)

The sequence processing method of claim 1, wherein the determining of the word of the first R-node comprises determining a word expected to be located at the center from among words included in the output sequence as the word of the first R-node.

### Claim 4 (depends on 1)

The sequence processing method of claim 1, further comprising:
generating second I-nodes that are connected to the second R-node and that include relative position information with respect to the word of the second R-node, in response to the word of the second R-node being determined; and
determining a word of a third R-node to correspond to each of the second I-nodes.

### Claim 5 (depends on 1)

The sequence processing method of claim 1, wherein the determining of the output sequence comprises determining the output sequence based on the word of the first R-node, in response to the word of the second R-node not being determined.

### Claim 6 (depends on 1)

The sequence processing method of claim 1, wherein the determining of the output sequence comprises determining the output sequence by arranging the determined words in a tree structure between generated R-nodes based on an in-order traversal.

### Claim 7 (depends on 1)

The sequence processing method of claim 1, wherein the generating of the first I-nodes comprises generating a predetermined number of first I-nodes or a number of first I-nodes that is dynamically determined based on at least one of the input sequence or the output sequence, the first I-nodes comprising pieces of relative position information with respect to the word of the first R-node.

### Claim 8 (depends on 1)

The sequence processing method of claim 1, wherein the determining of the word of the second R-node comprises determining the word of the second R-node based on a first I-node adjacent to a first I-node corresponding to the second R-node.

### Claim 9 (depends on 1)

The sequence processing method of claim 1, further comprising:
generating second I-nodes that are connected to the second R-node and include relative position information with respect to the word of the second R-node; and
determining a word of a third R-node to correspond to each of the second I-nodes based on a second R-node adjacent to a second R-node that is a parent node of the third R-node.

### Claim 10 (depends on 9)

The sequence processing method of claim 9, wherein the determining of the word of the third R-node comprises determining the word of the third R-node based on one second R-node that is selected based on a second I-node corresponding to the third R-node from second R-nodes adjacent to the second R-node that is the parent node of the third R-node.

### Claim 11 (depends on 1)

The sequence processing method of claim 1, wherein the determining of the word of the first R-node comprises determining the word of the first R-node using a decoder and context information of the input sequence output from an encoder receiving the input sequence.

### Claim 12 (depends on 1)

The sequence processing method of claim 1, wherein the determining of the word of the first R-node comprises determining the word of the first R-node using a neural language model to which the input sequence is input.

### Claim 13 (depends on 1)

The sequence processing method of claim 1, wherein the input sequence and the output sequence comprises one of sentence data, voice data, image data, biodata, or handwriting data.

### Claim 14 (depends on 1)

The sequence processing method of claim 1, wherein the first R-node and the second R-node each comprise a word included in the output sequence, and the word of the second R-node is based on the relative position information of the first I-node.

### Claim 15 (depends on 1)

The sequence processing method of claim 1, wherein a number of the first !-nodes is based on any one or any combination of a type of the input sequence, a type of the output sequence, and an estimated length of the output sequence.

### Claim 16 (depends on 1)

A non-transitory computer-readable storage medium storing instructions that, when executed by a processor, cause the processor to perform the method of claim 1.

### Claim 17

A sequence processing apparatus comprising:
a processor configured to:
determine a word of a first R-node corresponding to a root node based on an input sequence;
generate first I-nodes that are connected to the first R-node and include relative position information with respect to the word of the first R-node;
determine a word of a second R-node to correspond to each of the first I-nodes; and
determine an output sequence corresponding to the input sequence based on the determined words.

### Claim 18 (depends on 17)

The sequence processing apparatus of claim 17, wherein the processor is further configured to determine the word of the first R-node to minimize a number of times an R-node and an I-node are generated for determination of the output sequence.

### Claim 19 (depends on 17)

The sequence processing apparatus of claim 17, wherein the processor is further configured to:
generate second I-nodes that are connected to the second R-node and that include relative position information with respect to the word of the second R-node, in response to the word of the second R-node being determined; and
determine a word of a third R-node to correspond to each of the second I-nodes.

### Claim 20 (depends on 17)

The sequence processing apparatus of claim 17, wherein the processor is further configured to:
determine the output sequence based on the word of the first R-node, in response to the word of the second R-node not being determined.

### Claim 21 (depends on 17)

The sequence processing apparatus of claim 17, wherein the processor is further configured to determine the output sequence by arranging the determined words in a tree structure between generated R-nodes based on an in-order traversal.
