public final class DetectedLanguage extends Object
DetectedLanguage model.| Constructor and Description |
|---|
DetectedLanguage(String name,
String iso6391Name,
double confidenceScore,
com.azure.core.util.IterableStream<TextAnalyticsWarning> warnings)
Creates a
DetectedLanguage model that describes detected language content. |
| Modifier and Type | Method and Description |
|---|---|
double |
getConfidenceScore()
Gets the confidenceScore property: A confidence score between 0 and 1.
|
String |
getIso6391Name()
Gets the iso6391Name property: A two letter representation of the
detected language according to the ISO 639-1 standard (e.g.
|
String |
getName()
Gets the name property: Long name of a detected language (e.g.
|
com.azure.core.util.IterableStream<TextAnalyticsWarning> |
getWarnings()
Gets the
IterableStream of Text Analytics warnings. |
public DetectedLanguage(String name, String iso6391Name, double confidenceScore, com.azure.core.util.IterableStream<TextAnalyticsWarning> warnings)
DetectedLanguage model that describes detected language content.name - The name of a detected language.iso6391Name - A two letter representation of the detected language according to the ISO 639-1 standard.confidenceScore - A confidence score between 0 and 1.warnings - An IterableStream of warnings.public String getName()
public String getIso6391Name()
public double getConfidenceScore()
public com.azure.core.util.IterableStream<TextAnalyticsWarning> getWarnings()
IterableStream of Text Analytics warnings.IterableStream of TextAnalyticsWarning.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.