# US 10,957,312 B2 · Scalable dynamic class language modeling

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

- Number: US 10,957,312 B2
- Document ID: US10957312B2
- Status: Granted
- Kind: B2
- Application number: 16/731,753
- Filed: 2019-12-31
- Published: 2020-07-02
- Granted: 2021-03-23
- Earliest claimed: 2016-06-08
- Assignees: Google Inc.
- Applicants: Google LLC
- Inventors: Justin Max Scheiner; Petar Aleksic
- Web page: https://patentgrep.com/patent/US10957312B2

## CPC

- G10L 15/197: Probabilistic grammars, e.g. word n-grams
- G06F 16/3329: Natural language query formulation
- G06F 16/3344: {using natural language analysis}
- G06F 16/683: using metadata automatically derived from the content
- G06F 40/289: Phrasal analysis, e.g. finite state techniques or chunking
- G10L 15/22: Procedures used during a speech recognition process, e.g. man-machine dialogue
- G10L 15/30: Distributed recognition, e.g. in client-server systems, for mobile phones or network applications
- G10L 15/1815: {Semantic context, e.g. disambiguation of the recognition hypotheses based on word meaning}
- G10L 2015/223: {Execution procedure of a spoken command}
- 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)

## Abstract

This document generally describes systems and methods for dynamically adapting speech recognition for individual voice queries of a user using class-based language models. The method may include receiving a voice query from a user that includes audio data corresponding to an utterance of the user, and context data associated with the user. One or more class models are then generated that collectively identify a first set of terms determined based on the context data, and a respective class to which the respective term is assigned for each respective term in the first set of terms. A language model that includes a residual unigram may then be accessed and processed for each respective class to insert a respective class symbol at each instance of the residual unigram that occurs within the language model. A transcription of the utterance of the user is then generated using the modified language model.

## Claims

### Claim 1

A method comprising:
receiving, at data processing hardware, a voice query spoken by a user;
obtaining, by the data processing hardware, context data associated with the voice query;
generating, by the data processing hardware, using a language model, a candidate transcription sequence for the voice query, the candidate transcription sequence comprising a class-based symbol that represents out-of-vocabulary terms for a language of the language model;
obtaining, by the data processing hardware, a list of user-specific terms belonging to a particular class based on the context data;
updating, by the data processing hardware, the language model by incorporating the obtained list of user-specific terms into the language model; and
generating, by the data processing hardware, using the updated language model, a transcription for the voice query that comprises a sequence of terms including one of the user-specific terms selected from the list of user-specific terms in place of the class-based symbol.

### Claim 2 (depends on 1)

The method of claim 1, wherein the language model comprises an n-gram language model.

### Claim 3 (depends on 1)

The method of claim 1, wherein the class-based symbol is associated with the particular class that the list of user-specific terms belong to based on the context data.

### Claim 4 (depends on 1)

The method of claim 1, wherein the class-based symbol is selected from among a plurality of class-based symbols based on the context data associated with the voice query, each class-based symbol of the plurality of class-based symbols corresponding to a respective different class.

### Claim 5 (depends on 1)

The method of claim 1, wherein the data processing hardware resides on a user device associated with the user.

### Claim 6 (depends on 5)

The method of claim 5, wherein the language model is trained on a remote server in communication with the user device.

### Claim 7 (depends on 1)

The method of claim 1, wherein generating the transcription for the voice query comprises selecting the one of the user-specific terms from the list of user-specific terms in place of the class-based symbol by identifying which of the user-specific terms from the list of user-specific terms best resembles a phonetic transcription for a corresponding portion of the voice query.

### Claim 8 (depends on 1)

The method of claim 1, wherein the obtained list of user-specific terms comprises a contact list of the user.

### Claim 9 (depends on 1)

The method of claim 1, wherein the obtained list of user-specific terms comprises a list of song titles in a media player application associated with the user.

### Claim 10 (depends on 1)

The method of claim 1, wherein the candidate transcription sequence comprises a word lattice.

### Claim 11

A system comprising:
data processing hardware; and
memory hardware in communication with the data processing hardware and storing instructions, that when executed by the data processing hardware, cause the data processing hardware to perform one or more operations comprising:
receiving a voice query spoken by a user;
obtaining context data associated with the voice query;
generating, using a language model, a candidate transcription sequence for the voice query, the candidate transcription sequence comprising a class-based symbol that represents out-of-vocabulary terms for a language of the language model;
obtaining a list of user-specific terms belonging to a particular class based on the context data;
updating the language model by incorporating the obtained list of user-specific terms into the language model; and
generating, using the updated language model, a transcription for the voice query that comprises a sequence of terms including one of the user-specific terms selected from the list of user-specific terms in place of the class-based symbol.

### Claim 12 (depends on 11)

The system of claim 11, wherein the language model comprises an n-gram language model.

### Claim 13 (depends on 11)

The system of claim 11, wherein the class-based symbol is associated with the particular class that the list of user-specific terms belong to based on the context data.

### Claim 14 (depends on 11)

The system of claim 11, wherein the class-based symbol is selected from among a plurality of class-based symbols based on the context data associated with the voice query, each class-based symbol of the plurality of class-based symbols corresponding to a respective different class.

### Claim 15 (depends on 11)

The system of claim 11, wherein the data processing hardware resides on a user device associated with the user.

### Claim 16 (depends on 15)

The system of claim 15, wherein the language model is trained on a remote server in communication with the user device.

### Claim 17 (depends on 11)

The system of claim 11, wherein generating the transcription for the voice query comprises selecting the one of the user-specific terms from the list of user-specific terms in place of the class-based symbol by identifying which of the user-specific terms from the list of user-specific terms best resembles a phonetic transcription for a corresponding portion of the voice query.

### Claim 18 (depends on 11)

The system of claim 11, wherein the obtained list of user-specific terms comprises a contact list of the user.

### Claim 19 (depends on 11)

The system of claim 11, wherein the obtained list of user-specific terms comprises a list of song titles in a media player application associated with the user.

### Claim 20 (depends on 11)

The system of claim 11, wherein the candidate transcription sequence comprises a word lattice.
