| Package | Description |
|---|---|
| com.azure.ai.textanalytics |
Package containing the classes for TextAnalyticsClient.
|
| com.azure.ai.textanalytics.models |
Package containing classes for TextAnalyticsClient.
|
| Modifier and Type | Method and Description |
|---|---|
DetectedLanguage |
TextAnalyticsClient.detectLanguage(String document)
Returns the detected language and a confidence score between zero and one.
|
DetectedLanguage |
TextAnalyticsClient.detectLanguage(String document,
String countryHint)
Returns the detected language and a confidence score between zero and one.
|
| Modifier and Type | Method and Description |
|---|---|
DetectedLanguage |
DetectLanguageResult.getPrimaryLanguage()
Gets the detected primary language.
|
| Constructor and Description |
|---|
DetectLanguageResult(String id,
TextDocumentStatistics textDocumentStatistics,
TextAnalyticsError error,
DetectedLanguage primaryLanguage)
Creates a
DetectLanguageResult model that describes detected languages result. |
Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.