Class DetectedLanguage
java.lang.Object
com.azure.ai.translation.text.models.DetectedLanguage
An object describing the detected language.
-
Method Summary
Modifier and TypeMethodDescriptionGet the language property: A string representing the code of the detected language.double
getScore()
Get the score property: A float value indicating the confidence in the result.
-
Method Details
-
getLanguage
Get the language property: A string representing the code of the detected language.- Returns:
- the language value.
-
getScore
public double getScore()Get the score 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 score value.
-