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

DetectLanguageSuccessResult interface

对单个文档执行检测语言作的结果,其中包含对文档所写入语言的预测。

扩展

属性

primaryLanguage

按置信度分数检测到的最高语言。

继承属性

error

判断这是否为错误结果。

id

唯一的非空文档标识符。

statistics

有关输入文档及其处理方式的统计信息。 当 includeStatistics 在客户端调用中设置为 true 时,此属性将具有值。

warnings

与此文档对应的警告数据数组。

如果未返回任何警告,则此数组将为空。

属性详细信息

primaryLanguage

按置信度分数检测到的最高语言。

primaryLanguage: DetectedLanguage

属性值

继承属性详细信息

error

判断这是否为错误结果。

error?: undefined

属性值

undefined

继承自TextAnalyticsSuccessResult.error

id

唯一的非空文档标识符。

id: string

属性值

string

继承自 TextAnalyticsSuccessResult.id

statistics

有关输入文档及其处理方式的统计信息。 当 includeStatistics 在客户端调用中设置为 true 时,此属性将具有值。

statistics?: TextDocumentStatistics

属性值

继承自TextAnalyticsSuccessResult.statistics

warnings

与此文档对应的警告数据数组。

如果未返回任何警告,则此数组将为空。

warnings: TextAnalyticsWarning[]

属性值

继承自TextAnalyticsSuccessResult.warnings