LanguageDectorFactory
Last updated
Last updated
async capabilities(options) =>
LanguageDetectorCapabilities
Get the capabilities of the on-device language model.
Options (optional) |
---|
Returns a new capabilities object
async create(options) =>
LanguageDetector
Creates a new language detector session
Options (optional) |
---|
Returns a new LanguageDetector session that can be prompted with the pre-provided configuration
model optional string
The id of the model to use, undefined to use the default
model optional string
gpuEngine: optional
AICapabilityGpuEngine
signal optional AbortSignal
monitor optional
AICreateMonitor