UNPKG

@predictive-text-studio/lexical-model-compiler

Version:
26 lines (25 loc) 1.41 kB
import { DefaultLexicalModelCompiler } from "./lexical-model-compiler"; import { LexicalModelSource } from "./lexical-model-source"; export declare class LegacyLexicalModelCompiler extends DefaultLexicalModelCompiler { /** * Returns the generated code for the model that will ultimately be loaded by * the LMLayer worker. This code contains all model parameters, and specifies * word breakers and auxilary functions that may be required. * * @deprecated * @param model_id The model ID. TODO: not sure if this is actually required! * @param modelSource A specification of the model to compile * @param sourcePath Where to find auxilary sources files */ generateLexicalModelCode(model_id: string, modelSource: LexicalModelSource, sourcePath: string): string; /** * Returns the generated code for the model that will ultimately be loaded by * the LMLayer worker. This code contains all model parameters, and specifies * word breakers and auxilary functions that may be required. * * @param model_id The model ID. TODO: not sure if this is actually required! * @param modelSource A specification of the model to compile * @param sourcePath Where to find auxilary sources files */ static compileUsingLegacyInterface(model_id: string, modelSource: LexicalModelSource, sourcePath: string): string; }