public class EntityValue implements IntOpenRange
An entity value.
public 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()
An entity value.
public int hashCode()
An entity value.
public boolean equals(@Nullable
java.lang.Object p)
An entity value.