@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PartOfSpeechTag extends Object implements Serializable, Cloneable, StructuredPojo
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 |
|---|---|
PartOfSpeechTag |
clone() |
boolean |
equals(Object obj) |
Float |
getScore()
The confidence that Amazon Comprehend has that the part of speech was correctly identified.
|
String |
getTag()
Identifies the part of speech that the token represents.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setScore(Float score)
The confidence that Amazon Comprehend has that the part of speech was correctly identified.
|
void |
setTag(String tag)
Identifies the part of speech that the token represents.
|
String |
toString()
Returns a string representation of this object.
|
PartOfSpeechTag |
withScore(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(String tag)
Identifies the part of speech that the token represents.
|
public void setTag(String tag)
Identifies the part of speech that the token represents.
tag - Identifies the part of speech that the token represents.PartOfSpeechTagTypepublic String getTag()
Identifies the part of speech that the token represents.
PartOfSpeechTagTypepublic PartOfSpeechTag withTag(String tag)
Identifies the part of speech that the token represents.
tag - Identifies the part of speech that the token represents.PartOfSpeechTagTypepublic PartOfSpeechTag withTag(PartOfSpeechTagType tag)
Identifies the part of speech that the token represents.
tag - Identifies the part of speech that the token represents.PartOfSpeechTagTypepublic void setScore(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 Float getScore()
The confidence that Amazon Comprehend has that the part of speech was correctly identified.
public PartOfSpeechTag withScore(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 String toString()
toString in class ObjectObject.toString()public PartOfSpeechTag clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.