ClassLanguageModel Class

Definition

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

public class ClassLanguageModel extends Grammar
Inheritance
java.lang.Object
AutoCloseable
ClassLanguageModel

Inherited Members

Methods

assignClass(String className, Grammar grammar)

Assigns a grammar to a specified class in a language model.

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.

Applies to