public class PartOfSpeechTag
extends java.lang.Object
implements java.io.Serializable
Identifies the part of speech represented by the token and gives the confidence that Amazon Comprehend has that the part of speech was correctly identified. For more information about the parts of speech that Amazon Comprehend can identify, see how-syntax.
Constructor and Description |
---|
PartOfSpeechTag() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Float |
getScore()
The confidence that Amazon Comprehend has that the part of speech was
correctly identified.
|
java.lang.String |
getTag()
Identifies the part of speech that the token represents.
|
int |
hashCode() |
void |
setScore(java.lang.Float score)
The confidence that Amazon Comprehend has that the part of speech was
correctly identified.
|
void |
setTag(PartOfSpeechTagType tag)
Identifies the part of speech that the token represents.
|
void |
setTag(java.lang.String tag)
Identifies the part of speech that the token represents.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PartOfSpeechTag |
withScore(java.lang.Float score)
The confidence that Amazon Comprehend has that the part of speech was
correctly identified.
|
PartOfSpeechTag |
withTag(PartOfSpeechTagType tag)
Identifies the part of speech that the token represents.
|
PartOfSpeechTag |
withTag(java.lang.String tag)
Identifies the part of speech that the token represents.
|
public java.lang.String getTag()
Identifies the part of speech that the token represents.
Constraints:
Allowed Values: ADJ, ADP, ADV, AUX, CONJ, CCONJ, DET, INTJ, NOUN,
NUM, O, PART, PRON, PROPN, PUNCT, SCONJ, SYM, VERB
Identifies the part of speech that the token represents.
PartOfSpeechTagType
public void setTag(java.lang.String tag)
Identifies the part of speech that the token represents.
Constraints:
Allowed Values: ADJ, ADP, ADV, AUX, CONJ, CCONJ, DET, INTJ, NOUN,
NUM, O, PART, PRON, PROPN, PUNCT, SCONJ, SYM, VERB
tag
- Identifies the part of speech that the token represents.
PartOfSpeechTagType
public PartOfSpeechTag withTag(java.lang.String tag)
Identifies the part of speech that the token represents.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ADJ, ADP, ADV, AUX, CONJ, CCONJ, DET, INTJ, NOUN,
NUM, O, PART, PRON, PROPN, PUNCT, SCONJ, SYM, VERB
tag
- Identifies the part of speech that the token represents.
PartOfSpeechTagType
public void setTag(PartOfSpeechTagType tag)
Identifies the part of speech that the token represents.
Constraints:
Allowed Values: ADJ, ADP, ADV, AUX, CONJ, CCONJ, DET, INTJ, NOUN,
NUM, O, PART, PRON, PROPN, PUNCT, SCONJ, SYM, VERB
tag
- Identifies the part of speech that the token represents.
PartOfSpeechTagType
public PartOfSpeechTag withTag(PartOfSpeechTagType tag)
Identifies the part of speech that the token represents.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ADJ, ADP, ADV, AUX, CONJ, CCONJ, DET, INTJ, NOUN,
NUM, O, PART, PRON, PROPN, PUNCT, SCONJ, SYM, VERB
tag
- Identifies the part of speech that the token represents.
PartOfSpeechTagType
public java.lang.Float getScore()
The confidence that Amazon Comprehend has that the part of speech was correctly identified.
The confidence that Amazon Comprehend has that the part of speech was correctly identified.
public void setScore(java.lang.Float score)
The confidence that Amazon Comprehend has that the part of speech was correctly identified.
score
- The confidence that Amazon Comprehend has that the part of speech was correctly identified.
public PartOfSpeechTag withScore(java.lang.Float score)
The confidence that Amazon Comprehend has that the part of speech was correctly identified.
Returns a reference to this object so that method calls can be chained together.
score
- The confidence that Amazon Comprehend has that the part of speech was correctly identified.
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.