public static interface SyntaxToken.Builder extends SdkPojo, CopyableBuilder<SyntaxToken.Builder,SyntaxToken>
Modifier and Type | Method and Description |
---|---|
SyntaxToken.Builder |
beginOffset(Integer beginOffset)
The zero-based offset from the beginning of the source text to the first character in the word.
|
SyntaxToken.Builder |
endOffset(Integer endOffset)
The zero-based offset from the beginning of the source text to the last character in the word.
|
default SyntaxToken.Builder |
partOfSpeech(Consumer<PartOfSpeechTag.Builder> partOfSpeech)
Provides the part of speech label and the confidence level that Amazon Comprehend has that the part of speech
was correctly identified.
|
SyntaxToken.Builder |
partOfSpeech(PartOfSpeechTag partOfSpeech)
Provides the part of speech label and the confidence level that Amazon Comprehend has that the part of speech
was correctly identified.
|
SyntaxToken.Builder |
text(String text)
The word that was recognized in the source text.
|
SyntaxToken.Builder |
tokenId(Integer tokenId)
A unique identifier for a token.
|
copy
applyMutation, build
SyntaxToken.Builder tokenId(Integer tokenId)
A unique identifier for a token.
tokenId
- A unique identifier for a token.SyntaxToken.Builder text(String text)
The word that was recognized in the source text.
text
- The word that was recognized in the source text.SyntaxToken.Builder beginOffset(Integer beginOffset)
The zero-based offset from the beginning of the source text to the first character in the word.
beginOffset
- The zero-based offset from the beginning of the source text to the first character in the word.SyntaxToken.Builder endOffset(Integer endOffset)
The zero-based offset from the beginning of the source text to the last character in the word.
endOffset
- The zero-based offset from the beginning of the source text to the last character in the word.SyntaxToken.Builder partOfSpeech(PartOfSpeechTag partOfSpeech)
Provides the part of speech label and the confidence level that Amazon Comprehend has that the part of speech was correctly identified. For more information, see how-syntax.
partOfSpeech
- Provides the part of speech label and the confidence level that Amazon Comprehend has that the part of
speech was correctly identified. For more information, see how-syntax.default SyntaxToken.Builder partOfSpeech(Consumer<PartOfSpeechTag.Builder> partOfSpeech)
Provides the part of speech label and the confidence level that Amazon Comprehend has that the part of speech was correctly identified. For more information, see how-syntax.
This is a convenience that creates an instance of thePartOfSpeechTag.Builder
avoiding the need to
create one manually via PartOfSpeechTag.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to partOfSpeech(PartOfSpeechTag)
.partOfSpeech
- a consumer that will call methods on PartOfSpeechTag.Builder
partOfSpeech(PartOfSpeechTag)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.