DetectLanguageResult Class
- java.
lang. Object - com.
azure. ai. textanalytics. models. TextAnalyticsResult - com.
azure. ai. textanalytics. models. DetectLanguageResult
- com.
- com.
public final class DetectLanguageResult
extends TextAnalyticsResult
The DetectLanguageResult model.
Constructor Summary
| Constructor | Description |
|---|---|
| DetectLanguageResult(String id, TextDocumentStatistics textDocumentStatistics, TextAnalyticsError error, DetectedLanguage primaryLanguage) |
Creates a |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Detected |
getPrimaryLanguage()
Gets the detected primary language. |
Methods inherited from TextAnalyticsResult
Methods inherited from java.lang.Object
Constructor Details
DetectLanguageResult
public DetectLanguageResult(String id, TextDocumentStatistics textDocumentStatistics, TextAnalyticsError error, DetectedLanguage primaryLanguage)
Creates a DetectLanguageResult model that describes detected languages result.
Parameters:
Method Details
getPrimaryLanguage
public DetectedLanguage getPrimaryLanguage()
Gets the detected primary language.
Returns: