public class EntityValue implements IntOpenRange
An entity value.
IntOpenRange.DefaultImpls| Constructor and Description |
|---|
EntityValue(int start,
int end,
Entity entity,
java.lang.Object value,
java.util.List<ai.tock.nlp.core.EntityRecognition> subEntities,
boolean evaluated)
An entity value.
|
| Modifier and Type | Method and Description |
|---|---|
int |
component1()
Start
|
int |
component2()
End
|
Entity |
component3()
Entity definition.
|
java.lang.Object |
component4()
Current value if evaluated.
|
java.util.List<ai.tock.nlp.core.EntityRecognition> |
component5()
Sub entities if any.
|
boolean |
component6()
Is this entity has been evaluated?
|
EntityValue |
copy(int start,
int end,
Entity entity,
java.lang.Object value,
java.util.List<ai.tock.nlp.core.EntityRecognition> subEntities,
boolean evaluated)
An entity value.
|
boolean |
equals(java.lang.Object p) |
int |
getEnd()
End
|
Entity |
getEntity()
Entity definition.
|
boolean |
getEvaluated()
Is this entity has been evaluated?
|
int |
getStart()
Start
|
java.util.List<ai.tock.nlp.core.EntityRecognition> |
getSubEntities()
Sub entities if any.
|
java.lang.Object |
getValue()
Current value if evaluated.
|
int |
hashCode() |
java.lang.String |
toString() |
compareTo, getEnd, getStart, isSameRange, overlap, overlap, size, textValuepublic EntityValue(int start,
int end,
@NotNull
Entity entity,
@Nullable
java.lang.Object value,
@NotNull
java.util.List<ai.tock.nlp.core.EntityRecognition> subEntities,
boolean evaluated)
An entity value.
start - Start (inclusive) text index of the entity.end - End (exclusive) text index of the entity.entity - Entity definition.value - Current value if evaluated.subEntities - Sub entities if any.evaluated - Is this entity has been evaluated?public int getStart()
Start
(inclusive) text index of the entity.
public int getEnd()
End
(exclusive) text index of the entity.
@NotNull public Entity getEntity()
Entity definition.
@Nullable public java.lang.Object getValue()
Current value if evaluated.
@NotNull public java.util.List<ai.tock.nlp.core.EntityRecognition> getSubEntities()
Sub entities if any.
public boolean getEvaluated()
Is this entity has been evaluated?
public int component1()
Start
(inclusive) text index of the entity.
public int component2()
End
(exclusive) text index of the entity.
@NotNull public Entity component3()
Entity definition.
@Nullable public java.lang.Object component4()
Current value if evaluated.
@NotNull public java.util.List<ai.tock.nlp.core.EntityRecognition> component5()
Sub entities if any.
public boolean component6()
Is this entity has been evaluated?
@NotNull public EntityValue copy(int start, int end, @NotNull Entity entity, @Nullable java.lang.Object value, @NotNull java.util.List<ai.tock.nlp.core.EntityRecognition> subEntities, boolean evaluated)
An entity value.
@NotNull public java.lang.String toString()
public int hashCode()
public boolean equals(@Nullable
java.lang.Object p)