# US 2024/0005093 A1 · Device, method and program for natural language processing

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

- Number: US 2024/0005093 A1
- Document ID: US20240005093A1
- Status: Published application
- Kind: A1
- Application number: 18/368,223
- Filed: 2023-09-14
- Published: 2024-01-04
- Earliest claimed: 2018-02-28
- Assignees: Nippon Telegraph and Telephone Corporation; Tohoku University
- Applicants: Nippon Telegraph and Telephone Corporation; Tohoku University
- Inventors: Jun SUZUKI; Sho TAKASE; Kentaro INUI; Naoaki OKAZAKI; Shun KIYONO
- Web page: https://patentgrep.com/patent/US20240005093A1

## CPC

- G06F 40/20: Natural language analysis (semantic analysis of natural language G06F40/30)
- G06F 40/30: Semantic analysis
- G06F 16/345: {Summarisation for human users}
- G06F 40/279: Recognition of textual entities
- G06F 40/40: Processing or translation of natural language (natural language analysis G06F40/20; semantic analysis G06F40/30)
- G06F 40/58: Use of machine translation, e.g. for multi-lingual retrieval, for server-side translation for client devices or for real-time translation
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/0442: characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
- G06N 3/045: Combinations of networks
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 3/09: Supervised learning
- G06F 40/216: using statistical methods
- G06F 40/284: Lexical analysis, e.g. tokenisation or collocates
- G06F 40/56: Natural language generation
- G06N 3/088: Non-supervised learning, e.g. competitive learning
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Disclosed is a natural language processing technique according to a neural network of high interpretive ability. One embodiment of the present disclosure relates to an apparatus including a trained neural network into which first natural language text is input and that is trained to output second natural language text and alignment information, the second natural language text being in accordance with a predetermined purpose corresponding to the first natural language text, and the alignment information indicating, for each part of the second natural language text, which part of the first natural language text is a basis of information for generation; and an analyzing unit configured to output, upon input text being input into the trained neural network, a predicted result of output text in accordance with a predetermined purpose, and alignment information indicating, for each part of the predicted result of the output text, which part of the input text is a basis of information for generation.

## Claims

### Claim 1

A device comprising:
a storage that stores a trained neural network into which first natural language text is input and that is trained to output second natural language text and alignment information, the second natural language text being in accordance with a predetermined purpose corresponding to the first natural language text, and the alignment information indicating, for each part of the second natural language text, which part of the first natural language text is a basis of information for generation; and
a hardware processor that, when reading and executing the trained neural network:
inputs text into the trained neural network; and
outputs a predicted result of output text in accordance with a predetermined purpose, and alignment information indicating, for each part of the predicted result of the output text, which part of the input text is a basis of information for generation.

### Claim 2 (depends on 1)

The device according to claim 1, wherein the trained neural network, when read and executed by the hardware processor:
converts input text into intermediate states;
generates the predicted result of the output text for each processing unit, sequentially from a first processing unit of the output text, with the intermediate states as input; and
outputs a predicted result of a j-th processing unit and information specifying a processing unit in the input text used in generating the predicted result of the j-th processing unit, using hidden states obtained from converting a predicted result of a j−1-th processing unit of the output text, and the intermediate states.

### Claim 3

A device comprising:
a storage that stores a neural network into which first natural language text is input and that outputs second natural language text and alignment information, the second natural language text being in accordance with a predetermined purpose corresponding to the first natural language text, and the alignment information indicating, for each part of the second natural language text, which part of the first natural language text is a basis of information for generation; and
a hardware processor that, when reading and executing the neural network:
inputs text for learning into the neural network;
outputs a predicted result of output text for learning and alignment information, with respect to each of learning data given beforehand consisting of pairs of the input text for learning and correct output text for learning; and
updates each parameter of the neural network, in accordance with a value of a loss function calculated based on the predicted result of the output text for learning and the alignment information.

### Claim 4 (depends on 3)

The device according to claim 3, wherein the loss function is characterized by being calculated such that a value of a loss function becomes smaller in a case of a degree of similarity between a first occurrence frequency and a second occurrence frequency being high, than in a case of the degree of similarity being low, the first occurrence frequency being an occurrence frequency of each vocabulary word of a first natural language used in generating the predicted result of the output text for learning, and the second occurrence frequency being an occurrence frequency of each vocabulary word of the first natural language in the input text for learning.

### Claim 5 (depends on 3)

The device according to claim 3, wherein the neural network, when read and executed by the hardware processor:
converts input text for learning into intermediate states;
generates the predicted result of the output text for learning for each processing unit, sequentially from a first processing unit of the predicted result of the output text for learning, with the intermediate states as input; and
outputs a predicted result of a j-th processing unit and information specifying a processing unit in the input text used in generating the predicted result of the j-th processing unit, using hidden states obtained from converting a predicted result of a j−1-th processing unit of the output text, and the intermediate states.

### Claim 6

A method including:
inputting text into a trained neural network; and
outputting a predicted result of output text in accordance with a predetermined purpose, and alignment information indicating, for each part of the predicted result of the output text, which part of the input text is a basis of information for generation,
wherein the trained neural network, into which first natural language text is input, is trained to output second natural language text and alignment information, the second natural language text being in accordance with a predetermined purpose corresponding to the first natural language text, and the alignment information indicating, for each part of the second natural language text, which part of the first natural language text is a basis of information for generation.

### Claim 7

A method including:
inputting into a neural network text for learning, with respect to each of learning data given beforehand consisting of pairs of the input text for learning and correct output text for learning;
outputting a predicted result of output text for learning and alignment information; and
updating each parameter of the neural network, in accordance with a value of a loss function calculated based on the predicted result of the output text for learning and the alignment information,
wherein the neural network, into which first natural language text is input, outputs second natural language text and alignment information, the second natural language text being in accordance with a predetermined purpose corresponding to the first natural language text, and the alignment information indicating, for each part of the second natural language text, which part of the first natural language text is a basis of information for generation.

### Claim 8 (depends on 1)

A non-transitory computer-readable recording medium having a program embodied therein causing a processor to read and execute the trained neural network of the device according to claim 1.

### Claim 9 (depends on 3)

A non-transitory computer-readable recording medium having a program embodied therein causing a processor to read and execute the neural network of claim 3.
