@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Entity extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about an entity.
Constructor and Description |
---|
Entity() |
Modifier and Type | Method and Description |
---|---|
Entity |
clone() |
boolean |
equals(Object obj) |
Integer |
getBeginOffset()
A character offset in the input text that shows where the entity begins (the first character is at position 0).
|
Integer |
getEndOffset()
A character offset in the input text that shows where the entity ends.
|
Float |
getScore()
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
|
String |
getText()
The text of the entity.
|
String |
getType()
The entity's type.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBeginOffset(Integer beginOffset)
A character offset in the input text that shows where the entity begins (the first character is at position 0).
|
void |
setEndOffset(Integer endOffset)
A character offset in the input text that shows where the entity 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 the entity.
|
void |
setType(String type)
The entity's type.
|
String |
toString()
Returns a string representation of this object.
|
Entity |
withBeginOffset(Integer beginOffset)
A character offset in the input text that shows where the entity begins (the first character is at position 0).
|
Entity |
withEndOffset(Integer endOffset)
A character offset in the input text that shows where the entity ends.
|
Entity |
withScore(Float score)
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
|
Entity |
withText(String text)
The text of the entity.
|
Entity |
withType(EntityType type)
The entity's type.
|
Entity |
withType(String type)
The entity's type.
|
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 Entity 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 setType(String type)
The entity's type.
type
- The entity's type.EntityType
public String getType()
The entity's type.
EntityType
public Entity withType(String type)
The entity's type.
type
- The entity's type.EntityType
public Entity withType(EntityType type)
The entity's type.
type
- The entity's type.EntityType
public void setText(String text)
The text of the entity.
text
- The text of the entity.public String getText()
The text of the entity.
public Entity withText(String text)
The text of the entity.
text
- The text of the entity.public void setBeginOffset(Integer beginOffset)
A character offset in the input text that shows where the entity 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 entity 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 entity 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 Entity withBeginOffset(Integer beginOffset)
A character offset in the input text that shows where the entity 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 entity 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 that shows where the entity 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 that shows where the entity 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 that shows where the entity 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 Entity withEndOffset(Integer endOffset)
A character offset in the input text that shows where the entity 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 that shows where the entity 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 Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.