DetectLanguageSuccessResult interface

The result of the detect language operation on a single document, containing a prediction of what language the document is written in.

Extends

Properties

primaryLanguage

The top detected language by confidence score.

Inherited Properties

error

Discriminant to determine if that this is an error result.

id

Unique, non-empty document identifier.

statistics

Statistics about the input document and how it was processed by the service. This property will have a value when includeStatistics is set to true in the client call.

warnings

An array of warning data corresponding to this document.

If no warnings were returned, this array will be empty.

Property Details

primaryLanguage

The top detected language by confidence score.

primaryLanguage: DetectedLanguage

Property Value

Inherited Property Details

error

Discriminant to determine if that this is an error result.

error?: undefined

Property Value

undefined

Inherited From TextAnalyticsSuccessResult.error

id

Unique, non-empty document identifier.

id: string

Property Value

string

Inherited From TextAnalyticsSuccessResult.id

statistics

Statistics about the input document and how it was processed by the service. This property will have a value when includeStatistics is set to true in the client call.

statistics?: TextDocumentStatistics

Property Value

Inherited From TextAnalyticsSuccessResult.statistics

warnings

An array of warning data corresponding to this document.

If no warnings were returned, this array will be empty.

warnings: TextAnalyticsWarning[]

Property Value

Inherited From TextAnalyticsSuccessResult.warnings