# US 2021/0174788 A1 · Language model score calculating apparatus, learning apparatus, language model score calculating method, learning method and program

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

- Number: US 2021/0174788 A1
- Document ID: US20210174788A1
- Status: Published application
- Kind: A1
- Application number: 17/268,578
- Filed: 2019-06-21
- Published: 2021-06-10
- Earliest claimed: 2018-08-17
- Assignees: Nippon Telegraph and Telephone Corporation
- Applicants: Nippon Telegraph and Telephone Corporation
- Inventors: Ryo MASUMURA; Tomohiro TANAKA
- Web page: https://patentgrep.com/patent/US20210174788A1

## CPC

- G10L 15/16: using artificial neural networks
- G06F 40/279: Recognition of textual entities
- G06F 40/30: Semantic analysis
- 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/09: Supervised learning
- G06N 7/01: Probabilistic graphical models, e.g. probabilistic networks
- G10L 15/07: to the speaker
- G10L 15/197: Probabilistic grammars, e.g. word n-grams
- G10L: SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A language model score calculation apparatus calculates a prediction probability of a word wi as a language model score of a language model based on a recurrent neural network. The language model score calculation apparatus includes a memory; and a processor configured to execute converting a word wi-1 that is observed immediately before the word wi into a word vector ϕ(wi-1); converting a speaker label ri-1 corresponding to the word wi-1 and a speaker label ri corresponding to the word wi into a speaker vector ψ(ri-1) and a speaker vector ψ(ri), respectively; calculating a word history vector si by using the word vector ϕ(wi-1), the speaker vector ψ(ri-1), and a word history vector si-1 that is obtained when a prediction probability of the word wi-1 is calculated; and calculating a prediction probability of the word wi by using the word history vector si-1 and the speaker vector ψ(ri).

## Claims

### Claim 1

A language model score calculation apparatus that calculates a prediction probability of a word wi as a language model score of a language model based on a recurrent neural network, the language model score calculation apparatus comprising:
a memory; and
a processor configured to execute
converting a word wi-1 that is observed immediately before the word wi into a word vector ϕ(wi-1);
converting a speaker label ri-1 corresponding to the word wi-1 and a speaker label ri corresponding to the word wi into a speaker vector ψ(ri-1) and a speaker vector ψ(ri), respectively;
calculating a word history vector si by using the word vector ϕ(wi-1), the speaker vector ψ(ri-1), and a word history vector si-1 that is obtained when a prediction probability of the word wi-1 is calculated; and
calculating a prediction probability of the word wi by using the word history vector si-1 and the speaker vector ψ(ri).

### Claim 2 (depends on 1)

The language model score calculation apparatus according to claim 1, wherein, after the calculating of the word history vector generates a concatenated vector in which the word vector ϕ(wi-1) and the speaker vector ψ(ri-1) are concatenated, the calculating of the word history vector calculates the word history vector si based on the concatenated vector and the word history vector si-1.

### Claim 3 (depends on 1)

The language model score calculation apparatus according to claim 1, wherein the speaker label ri-1 is information indicating a speaker who has spoken the word wi-1, and wherein the speaker label ri is information indicating a speaker who is going to speak the word wi.

### Claim 4

A learning apparatus that learns a model parameter θ of a language model based on a recurrent neural network, the learning apparatus comprising:
a memory; and
a processor configured to execute
causing the language model to receive, as inputs, a word sequence w1, . . . , wN and a speaker label sequence r1, . . . , rN that represents speakers of words included in the words w1, . . . , wN and calculate a prediction probability distribution of an individual word wi included in the word sequence w1, . . . , wN; and
updating the model parameter θ of the language model by using the word sequence w1, . . . , wN and the prediction probability distributions of the respective words wi.

### Claim 5 (depends on 4)

The learning apparatus according to claim 4, wherein the updating uses the individual words included in the word sequence w1, . . . , wN as correct words and updates the model parameter θ such that prediction probabilities of the correct words in the individual prediction probability distributions are maximized.

### Claim 6

A language model score calculation method performed by a language model score calculation apparatus that includes a memory and a processor to calculate a prediction probability of a word wi as a language model score of a language model based on a recurrent neural network, the language model score calculation method comprising:
converting a word wi-1 that is observed immediately before the word wi into a word vector ϕ(wi-1);
converting a speaker label ri-1 corresponding to the word wi-1 and a speaker label ri corresponding to the word wi into a speaker vector ψ(ri-1) and a speaker vector ψ(ri), respectively;
si calculating a word history vector si by using the word vector ϕ(wi-1), the speaker vector ψ(ri-1), and a word history vector si-1 that is obtained when a prediction probability of the word wi-1 is calculated; and
calculating a prediction probability of the word wi by using the word history vector si-1 and the speaker vector ψ(ri).

### Claim 7

(canceled)

### Claim 8 (depends on 6)

A non-transitory computer-readable recording medium having computer-readable instructions stored thereon, which when executed, causes a computer including a memory and a processor to execute the language model score calculation method according to claim 6.

### Claim 9

A language model score calculation apparatus that calculates a prediction score of a first word wi as a language model score of a language model based on a neural network, the language model score calculation apparatus comprising:
a memory; and
a processor configured to execute
calculating a first word history vector si by using
a second word vector ϕ(wi-1) corresponding to a second word wi-1 that is observed before the first word wi,
a second speaker vector ψ(ri-1) corresponding to the second word wi-1,
a second word history vector obtained when calculating a prediction score of the second word wi-1, and
calculating the prediction score of the first word wi by using
the second word history vector si-1, and
a first speaker vector ψ(ri) corresponding to the first word wi.
