Identifies the language of a String (or [String]) with a fine-tuned HuggingFace classifier and emits the model's own language code by output slot: a top-1 String, a per-segment [String], a Classification, or a [Classification].
Route transcribed speech to a language tag for downstream branching.
Detect the source language of incoming text before translating it.
model and device are hot-swappable at runtime; max_input_tokens, batch_size, and top_k are re-read every message.model changes the label set and code convention.top_k applies only when a single String feeds a [Classification] output, returning that text's ranked languages; on every batch arm and every single-best arm the top-1 language is emitted.max_input_tokens are truncated to the model's max_position_embeddings before detection; language id stays reliable on short prefixes, so a long document does not need chunking.[String] keeps its index with an empty-label verdict so the batch arms stay aligned.Automated release