ClassLanguageModel Class
- java.
lang. Object - com.
microsoft. cognitiveservices. speech. Grammar - com.
microsoft. cognitiveservices. speech. ClassLanguageModel
- com.
- com.
Implements
public final class ClassLanguageModel
extends Grammar
implements java.lang.AutoCloseable
Represents a ClassLanguageModel. ClassLanguageModels are only usable in specific scenarios and are not generally available. Note: close() must be called in order to release underlying resources held by the object. Added in version 1.7.0
Method Summary
Modifier and Type | Method and Description |
---|---|
void |
assignClass(String className, Grammar grammar)
Assigns a grammar to a specified class in a language model. |
static
Class |
fromStorageId(String id)
Creates a class |
Methods inherited from Grammar
Methods inherited from java.lang.Object
Method Details
assignClass
public void assignClass(String className, Grammar grammar)
Assigns a grammar to a specified class in a language model.
Parameters:
fromStorageId
public static ClassLanguageModel fromStorageId(String id)
Creates a classLanguageModel from its storage Id. Creating a ClassLanguageModel from a storage ID is only usable in specific scenarios and is not generally available.
Parameters:
Returns: