public final class DetectLanguageResult extends TextAnalyticsResult
DetectLanguageResult
model.Constructor and Description |
---|
DetectLanguageResult(String id,
TextDocumentStatistics textDocumentStatistics,
TextAnalyticsError error,
DetectedLanguage primaryLanguage)
Create a
DetectLanguageResult model that describes detected languages result. |
Modifier and Type | Method and Description |
---|---|
DetectedLanguage |
getPrimaryLanguage()
Get the detected primary language.
|
getError, getId, getStatistics, isError
public DetectLanguageResult(String id, TextDocumentStatistics textDocumentStatistics, TextAnalyticsError error, DetectedLanguage primaryLanguage)
DetectLanguageResult
model that describes detected languages result.id
- Unique, non-empty document identifier.textDocumentStatistics
- The text document statistics.error
- The document error.primaryLanguage
- The detected primary language.public DetectedLanguage getPrimaryLanguage()
TextAnalyticsException
- if result has isError
equals to true and when a non-error property
was accessed.Copyright © 2021 Microsoft Corporation. All rights reserved.