Class ClassLanguageModel
- java.lang.Object
-
- com.microsoft.cognitiveservices.speech.Grammar
-
- com.microsoft.cognitiveservices.speech.ClassLanguageModel
-
- All Implemented Interfaces:
AutoCloseable
public final class ClassLanguageModel extends Grammar implements 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassignClass(String className, Grammar grammar)Assigns a grammar to a specified class in a language model.static ClassLanguageModelfromStorageId(String id)Creates a classLanguageModel from its storage Id.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.AutoCloseable
close
-
-
-
-
Method Detail
-
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:
id- The Id of the Class Language Model- Returns:
- classLanguageModel associated with the given Id.
-
-