Interface LanguageWithScore.Builder

    • Method Detail

      • languageCode

        LanguageWithScore.Builder languageCode​(String languageCode)

        The language code of the identified language.

        Parameters:
        languageCode - The language code of the identified language.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        LanguageCode, LanguageCode
      • languageCode

        LanguageWithScore.Builder languageCode​(LanguageCode languageCode)

        The language code of the identified language.

        Parameters:
        languageCode - The language code of the identified language.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        LanguageCode, LanguageCode
      • score

        LanguageWithScore.Builder score​(Double score)

        The confidence score associated with the identified language code. Confidence scores are values between zero and one; larger values indicate a higher confidence in the identified language.

        Parameters:
        score - The confidence score associated with the identified language code. Confidence scores are values between zero and one; larger values indicate a higher confidence in the identified language.
        Returns:
        Returns a reference to this object so that method calls can be chained together.