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()
Get the confidenceScore property: A confidence score between 0 and 1.
|
String |
getIso6391Name()
Get the iso6391Name property: A two letter representation of the
detected language according to the ISO 639-1 standard (e.g.
|
String |
getName()
Get the name property: Long name of a detected language (e.g.
|
com.azure.core.util.IterableStream<TextAnalyticsWarning> |
getWarnings()
Get 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
.Copyright © 2021 Microsoft Corporation. All rights reserved.