LanguageDetectorFactory
Methods
capabilities
async capabilities(options) =>
LanguageDetectorCapabilities
Get the capabilities of the on-device language model.
model extension web optional string
The id of the model to use, undefined to use the default. The extension version also accepts a direct link to a HuggingFace GGUF file. The web version also accepts the repo & name of a HuggingFace ONNX repo.
Returns a new capabilities object
create
async create(options) =>
LanguageDetector
Creates a new language detector session
model extension web optional string
gpuEngine extension web optional
AICapabilityGpuEngine
dtype web optional
AIModelDtype
signal optional AbortSignal
monitor optional
AICreateMonitor
Returns a new LanguageDetector session that can be prompted with the pre-provided configuration
Last updated