@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class KeyPhrase extends Object implements Serializable, Cloneable, StructuredPojo
Describes a key noun phrase.
Constructor and Description |
---|
KeyPhrase() |
Modifier and Type | Method and Description |
---|---|
KeyPhrase |
clone() |
boolean |
equals(Object obj) |
Integer |
getBeginOffset()
The zero-based offset from the beginning of the source text to the first character in the key phrase.
|
Integer |
getEndOffset()
The zero-based offset from the beginning of the source text to the last character in the key phrase.
|
Float |
getScore()
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
|
String |
getText()
The text of a key noun phrase.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBeginOffset(Integer beginOffset)
The zero-based offset from the beginning of the source text to the first character in the key phrase.
|
void |
setEndOffset(Integer endOffset)
The zero-based offset from the beginning of the source text to the last character in the key phrase.
|
void |
setScore(Float score)
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
|
void |
setText(String text)
The text of a key noun phrase.
|
String |
toString()
Returns a string representation of this object.
|
KeyPhrase |
withBeginOffset(Integer beginOffset)
The zero-based offset from the beginning of the source text to the first character in the key phrase.
|
KeyPhrase |
withEndOffset(Integer endOffset)
The zero-based offset from the beginning of the source text to the last character in the key phrase.
|
KeyPhrase |
withScore(Float score)
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
|
KeyPhrase |
withText(String text)
The text of a key noun phrase.
|
public void setScore(Float score)
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
score
- The level of confidence that Amazon Comprehend has in the accuracy of the detection.public Float getScore()
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
public KeyPhrase withScore(Float score)
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
score
- The level of confidence that Amazon Comprehend has in the accuracy of the detection.public void setText(String text)
The text of a key noun phrase.
text
- The text of a key noun phrase.public String getText()
The text of a key noun phrase.
public KeyPhrase withText(String text)
The text of a key noun phrase.
text
- The text of a key noun phrase.public void setBeginOffset(Integer beginOffset)
The zero-based offset from the beginning of the source text to the first character in the key phrase.
beginOffset
- The zero-based offset from the beginning of the source text to the first character in the key phrase.public Integer getBeginOffset()
The zero-based offset from the beginning of the source text to the first character in the key phrase.
public KeyPhrase withBeginOffset(Integer beginOffset)
The zero-based offset from the beginning of the source text to the first character in the key phrase.
beginOffset
- The zero-based offset from the beginning of the source text to the first character in the key phrase.public void setEndOffset(Integer endOffset)
The zero-based offset from the beginning of the source text to the last character in the key phrase.
endOffset
- The zero-based offset from the beginning of the source text to the last character in the key phrase.public Integer getEndOffset()
The zero-based offset from the beginning of the source text to the last character in the key phrase.
public KeyPhrase withEndOffset(Integer endOffset)
The zero-based offset from the beginning of the source text to the last character in the key phrase.
endOffset
- The zero-based offset from the beginning of the source text to the last character in the key phrase.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.