LanguageDetectionSuccessResult interface
The result of a language detection action on a single document, containing a prediction of what language the document is written in.
- Extends
Properties
primary |
The top detected language by confidence score. |
Inherited Properties
error | Discriminant to determine if 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 this is an error result.
error?: undefined
Property Value
undefined
Inherited From TextAnalysisSuccessResult.error
id
Unique, non-empty document identifier.
id: string
Property Value
string
Inherited From TextAnalysisSuccessResult.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 TextAnalysisSuccessResult.statistics
warnings
An array of warning data corresponding to this document.
If no warnings were returned, this array will be empty.
warnings: DocumentWarning[]
Property Value
Inherited From TextAnalysisSuccessResult.warnings
Azure SDK for JavaScript