public final class DetectLanguageResult extends TextAnalyticsResult
DetectLanguageResult model.| Constructor and Description |
|---|
DetectLanguageResult(String id,
TextDocumentStatistics textDocumentStatistics,
TextAnalyticsError error,
DetectedLanguage primaryLanguage)
Creates a
DetectLanguageResult model that describes detected languages result. |
| Modifier and Type | Method and Description |
|---|---|
DetectedLanguage |
getPrimaryLanguage()
Gets the detected primary language.
|
getError, getId, getStatistics, isErrorpublic 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.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.