@Generated(value="software.amazon.awssdk:codegen") public final class KeyPhrase extends Object implements SdkPojo, Serializable, ToCopyableBuilder<KeyPhrase.Builder,KeyPhrase>
Describes a key noun phrase.
Modifier and Type | Class and Description |
---|---|
static interface |
KeyPhrase.Builder |
Modifier and Type | Method and Description |
---|---|
Integer |
beginOffset()
A character offset in the input text that shows where the key phrase begins (the first character is at position
0).
|
static KeyPhrase.Builder |
builder() |
Integer |
endOffset()
A character offset in the input text where the key phrase ends.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Float |
score()
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends KeyPhrase.Builder> |
serializableBuilderClass() |
String |
text()
The text of a key noun phrase.
|
KeyPhrase.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public Float score()
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
public String text()
The text of a key noun phrase.
public Integer beginOffset()
A character offset in the input text that shows where the key phrase begins (the first character is at position 0). The offset returns the position of each UTF-8 code point in the string. A code point is the abstract character from a particular graphical representation. For example, a multi-byte UTF-8 character maps to a single code point.
public Integer endOffset()
A character offset in the input text where the key phrase ends. The offset returns the position of each UTF-8
code point in the string. A code point
is the abstract character from a particular graphical
representation. For example, a multi-byte UTF-8 character maps to a single code point.
code point
is the abstract character from a particular
graphical representation. For example, a multi-byte UTF-8 character maps to a single code point.public KeyPhrase.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<KeyPhrase.Builder,KeyPhrase>
public static KeyPhrase.Builder builder()
public static Class<? extends KeyPhrase.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.