Class DetectedLanguage
java.lang.Object
com.azure.ai.translation.text.models.DetectedLanguage
An object describing the detected language.
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Get the confidence property: A float value indicating the confidence in the result.Get the language property: A string representing the code of the detected language.
-
Method Details
-
getLanguage
Get the language property: A string representing the code of the detected language.- Returns:
- the language value.
-
getConfidence
public double getConfidence()Get the confidence property: A float value indicating the confidence in the result. The score is between zero and one and a low score indicates a low confidence.- Returns:
- the confidence value.
-