public class ParsedEntityValue
This class is copied from ai.tock.nlp.core.EntityValue, but value is typed at Value. This is basically a hack to avoid including Value notion in the core.
There is also an additional boolean mergeSupport to indicate if value merge between two values or more of the same Entity is supported.
A probability property is also added. It comes from EntityRecognition
public ParsedEntityValue(int start,
int end,
@NotNull
ai.tock.nlp.core.Entity entity,
@Nullable
ai.tock.nlp.entity.Value value,
boolean evaluated,
@NotNull
java.util.List<ai.tock.nlp.front.shared.parser.ParsedEntityValue> subEntities,
double probability,
boolean mergeSupport)
This class is copied from ai.tock.nlp.core.EntityValue, but value is typed at Value. This is basically a hack to avoid including Value notion in the core.
There is also an additional boolean mergeSupport to indicate if value merge between two values or more of the same Entity is supported.
A probability property is also added. It comes from EntityRecognition
start - Start (inclusive) text index of the entity.end - End (exclusive) text index of the entity.entity - Entity definition.value - Current value if evaluated.evaluated - Is this entity has been evaluated ?subEntities - Sub entities if any.probability - Recognition probability.mergeSupport - Does this entity value support merge with other values ?public ParsedEntityValue(int start,
int end,
@NotNull
ai.tock.nlp.core.Entity entity,
@Nullable
java.lang.Object value,
boolean evaluated,
@NotNull
java.util.List<ai.tock.nlp.front.shared.parser.ParsedEntityValue> subEntities,
double probability,
boolean mergeSupport)
public ParsedEntityValue(@NotNull
ai.tock.nlp.core.EntityValue entityValue,
double probability,
boolean mergeSupport)
public int getStart()
Start
(inclusive) text index of the entity.
public int getEnd()
End
(exclusive) text index of the entity.
@NotNull public ai.tock.nlp.core.Entity getEntity()
Entity definition.
@Nullable public ai.tock.nlp.entity.Value getValue()
Current value if evaluated.
public boolean getEvaluated()
Is this entity has been evaluated
?
@NotNull public java.util.List<ai.tock.nlp.front.shared.parser.ParsedEntityValue> getSubEntities()
Sub entities if any.
public double getProbability()
Recognition probability.
public boolean getMergeSupport()
Does this entity value support merge with other values
?
public int component1()
Start
(inclusive) text index of the entity.
public int component2()
End
(exclusive) text index of the entity.
@NotNull public ai.tock.nlp.core.Entity component3()
Entity definition.
@Nullable public ai.tock.nlp.entity.Value component4()
Current value if evaluated.
public boolean component5()
Is this entity has been evaluated
?
@NotNull public java.util.List<ai.tock.nlp.front.shared.parser.ParsedEntityValue> component6()
Sub entities if any.
public double component7()
Recognition probability.
public boolean component8()
Does this entity value support merge with other values
?
@NotNull public ParsedEntityValue copy(int start, int end, @NotNull ai.tock.nlp.core.Entity entity, @Nullable ai.tock.nlp.entity.Value value, boolean evaluated, @NotNull java.util.List<ai.tock.nlp.front.shared.parser.ParsedEntityValue> subEntities, double probability, boolean mergeSupport)
This class is copied from ai.tock.nlp.core.EntityValue, but value is typed at Value. This is basically a hack to avoid including Value notion in the core.
There is also an additional boolean mergeSupport to indicate if value merge between two values or more of the same Entity is supported.
A probability property is also added. It comes from EntityRecognition
@NotNull public java.lang.String toString()
This class is copied from ai.tock.nlp.core.EntityValue, but value is typed at Value. This is basically a hack to avoid including Value notion in the core.
There is also an additional boolean mergeSupport to indicate if value merge between two values or more of the same Entity is supported.
A probability property is also added. It comes from EntityRecognition
public int hashCode()
This class is copied from ai.tock.nlp.core.EntityValue, but value is typed at Value. This is basically a hack to avoid including Value notion in the core.
There is also an additional boolean mergeSupport to indicate if value merge between two values or more of the same Entity is supported.
A probability property is also added. It comes from EntityRecognition
public boolean equals(@Nullable
java.lang.Object p)
This class is copied from ai.tock.nlp.core.EntityValue, but value is typed at Value. This is basically a hack to avoid including Value notion in the core.
There is also an additional boolean mergeSupport to indicate if value merge between two values or more of the same Entity is supported.
A probability property is also added. It comes from EntityRecognition