Interface KeyPhrase.Builder

All Superinterfaces:
Buildable, CopyableBuilder<KeyPhrase.Builder,KeyPhrase>, SdkBuilder<KeyPhrase.Builder,KeyPhrase>, SdkPojo
Enclosing class:
KeyPhrase

public static interface KeyPhrase.Builder extends SdkPojo, CopyableBuilder<KeyPhrase.Builder,KeyPhrase>
  • Method Details

    • 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

      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.