Class DetectedLanguage

java.lang.Object
com.azure.ai.translation.text.models.DetectedLanguage

public final class DetectedLanguage extends Object
An object describing the detected language.
  • Method Details

    • getLanguage

      public String 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.