你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

DocumentLanguageOutput interface

一个对象,表示给定文本范围的检测到的语言。

属性

confidence

正确标识语言的置信度。

locale

检测到的语言。 值可以是 ISO 639-1 语言代码(例如“en”、“fr”)或 BCP 47 语言标记(例如“zh-Hans”)。

spans

语言所应用于的串联内容中文本元素的位置。

属性详细信息

confidence

正确标识语言的置信度。

confidence: number

属性值

number

locale

检测到的语言。 值可以是 ISO 639-1 语言代码(例如“en”、“fr”)或 BCP 47 语言标记(例如“zh-Hans”)。

locale: string

属性值

string

spans

语言所应用于的串联内容中文本元素的位置。

spans: DocumentSpanOutput[]

属性值