Interface KeyPhrase.Builder

    • Method Detail

      • score

        KeyPhrase.Builder score​(Float score)

        The level of confidence that Amazon Comprehend has in the accuracy of the detection.

        Parameters:
        score - The level of confidence that Amazon Comprehend has in the accuracy of the detection.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • text

        KeyPhrase.Builder text​(String text)

        The text of a key noun phrase.

        Parameters:
        text - The text of a key noun phrase.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • beginOffset

        KeyPhrase.Builder beginOffset​(Integer beginOffset)

        The zero-based offset from the beginning of the source text to the first character in the key phrase.

        Parameters:
        beginOffset - The zero-based offset from the beginning of the source text to the first character in the key phrase.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • endOffset

        KeyPhrase.Builder endOffset​(Integer endOffset)

        The zero-based offset from the beginning of the source text to the last character in the key phrase.

        Parameters:
        endOffset - The zero-based offset from the beginning of the source text to the last character in the key phrase.
        Returns:
        Returns a reference to this object so that method calls can be chained together.