DetectedLanguage Class
- java.
lang. Object - com.
azure. ai. textanalytics. models. DetectedLanguage
- com.
public final class DetectedLanguage
The DetectedLanguage model.
Constructor Summary
| Constructor | Description |
|---|---|
| DetectedLanguage(String name, String iso6391Name, double confidenceScore, IterableStream<TextAnalyticsWarning> warnings) |
Creates a |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| double |
getConfidenceScore()
Gets the confidence |
| String |
getIso6391Name()
Gets the iso6391Name property: A two letter representation of the detected language according to the ISO 639-1 standard (e. |
| String |
getName()
Gets the name property: Long name of a detected language (e. |
|
Iterable |
getWarnings()
Gets the IterableStream<T> of TextAnalyticsWarning. |
Methods inherited from java.lang.Object
Constructor Details
DetectedLanguage
public DetectedLanguage(String name, String iso6391Name, double confidenceScore, IterableStream<TextAnalyticsWarning> warnings)
Creates a DetectedLanguage model that describes detected language content.
Parameters:
Method Details
getConfidenceScore
public double getConfidenceScore()
Gets the confidenceScore property: A confidence score between 0 and 1. Scores close to 1 indicate 100% certainty that the identified language is true.
Returns:
getIso6391Name
public String getIso6391Name()
Gets the iso6391Name property: A two letter representation of the detected language according to the ISO 639-1 standard (e.g. en, fr).
Returns:
getName
public String getName()
Gets the name property: Long name of a detected language (e.g. English, French).
Returns:
getWarnings
public IterableStream<TextAnalyticsWarning> getWarnings()
Gets the IterableStream<T> of TextAnalyticsWarning.
Returns: