@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 Syntax in the Comprehend Developer Guide.
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.PartOfSpeechTagType
public String getTag()
Identifies the part of speech that the token represents.
PartOfSpeechTagType
public PartOfSpeechTag withTag(String tag)
Identifies the part of speech that the token represents.
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.
tag
- Identifies the part of speech that the token represents.PartOfSpeechTagType
public 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 Object
Object.toString()
public PartOfSpeechTag clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.