Class LanguageConfidence


  • public class LanguageConfidence
    extends Object
    Represents a predicted language and its corresponding confidences score.
    • Constructor Detail

      • LanguageConfidence

        public LanguageConfidence()
    • Method Detail

      • getLanguage

        public String getLanguage()
        Get the language of the result.
        Returns:
        The language of the result.
      • setLanguage

        public void setLanguage​(String language)
        Set the language of the result.
        Parameters:
        language - the language to be set for the result.
      • getConfidence

        public Double getConfidence()
        Get the confidence of the result.
        Returns:
        The confidence of the result.
      • setConfidence

        public void setConfidence​(Double confidence)
        Set the confidence of the result.
        Parameters:
        confidence - the confidence to be set for the result.