public class KeyPhrase
extends java.lang.Object
implements java.io.Serializable
Describes a key noun phrase.
Constructor and Description |
---|
KeyPhrase() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getBeginOffset()
A character offset in the input text that shows where the key phrase
begins (the first character is at position 0).
|
java.lang.Integer |
getEndOffset()
A character offset in the input text where the key phrase ends.
|
java.lang.Float |
getScore()
The level of confidence that Amazon Comprehend has in the accuracy of the
detection.
|
java.lang.String |
getText()
The text of a key noun phrase.
|
int |
hashCode() |
void |
setBeginOffset(java.lang.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(java.lang.Integer endOffset)
A character offset in the input text where the key phrase ends.
|
void |
setScore(java.lang.Float score)
The level of confidence that Amazon Comprehend has in the accuracy of the
detection.
|
void |
setText(java.lang.String text)
The text of a key noun phrase.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
KeyPhrase |
withBeginOffset(java.lang.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(java.lang.Integer endOffset)
A character offset in the input text where the key phrase ends.
|
KeyPhrase |
withScore(java.lang.Float score)
The level of confidence that Amazon Comprehend has in the accuracy of the
detection.
|
KeyPhrase |
withText(java.lang.String text)
The text of a key noun phrase.
|
public java.lang.Float getScore()
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
public void setScore(java.lang.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 KeyPhrase withScore(java.lang.Float score)
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
Returns a reference to this object so that method calls can be chained together.
score
- The level of confidence that Amazon Comprehend has in the accuracy of the detection.
public java.lang.String getText()
The text of a key noun phrase.
Constraints:
Length: 1 -
The text of a key noun phrase.
public void setText(java.lang.String text)
The text of a key noun phrase.
Constraints:
Length: 1 -
text
- The text of a key noun phrase.
public KeyPhrase withText(java.lang.String text)
The text of a key noun phrase.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
text
- The text of a key noun phrase.
public java.lang.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.
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 setBeginOffset(java.lang.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 KeyPhrase withBeginOffset(java.lang.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.
Returns a reference to this object so that method calls can be chained together.
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 java.lang.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.
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 void setEndOffset(java.lang.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 KeyPhrase withEndOffset(java.lang.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.
Returns a reference to this object so that method calls can be chained together.
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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.