DocumentLanguageOutput interface
An object representing the detected language for a given text span.
Properties
confidence | Confidence of correctly identifying the language. |
locale | Detected language. Value may an ISO 639-1 language code (ex. "en", "fr") or BCP 47 language tag (ex. "zh-Hans"). |
spans | Location of the text elements in the concatenated content the language applies to. |
Property Details
confidence
Confidence of correctly identifying the language.
confidence: number
Property Value
number
locale
Detected language. Value may an ISO 639-1 language code (ex. "en", "fr") or BCP 47 language tag (ex. "zh-Hans").
locale: string
Property Value
string
spans
Location of the text elements in the concatenated content the language applies to.
spans: DocumentSpanOutput[]
Property Value
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for JavaScript