@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()
A character offset in the input text that shows where the key phrase begins (the first character is at position
0).
|
Integer |
getEndOffset()
A character offset in the input text where the key phrase ends.
|
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) |
void |
setBeginOffset(Integer beginOffset)
A character offset in the input text that shows where the key phrase begins (the first character is at position
0).
|
void |
setEndOffset(Integer endOffset)
A character offset in the input text where the key phrase ends.
|
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; useful for testing and debugging.
|
KeyPhrase |
withBeginOffset(Integer beginOffset)
A character offset in the input text that shows where the key phrase begins (the first character is at position
0).
|
KeyPhrase |
withEndOffset(Integer endOffset)
A character offset in the input text where the key phrase ends.
|
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)
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.
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 getBeginOffset()
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 KeyPhrase withBeginOffset(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.
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 void setEndOffset(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.
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.public Integer getEndOffset()
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 withEndOffset(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.
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.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2018. All rights reserved.