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
| Constructor and Description |
|---|
ParsedEntityValue(int start,
int end,
ai.tock.nlp.core.Entity entity,
ai.tock.nlp.entity.Value value,
boolean evaluated,
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.
|
ParsedEntityValue(int start,
int end,
ai.tock.nlp.core.Entity entity,
java.lang.Object value,
boolean evaluated,
java.util.List<ai.tock.nlp.front.shared.parser.ParsedEntityValue> subEntities,
double probability,
boolean mergeSupport) |
ParsedEntityValue(ai.tock.nlp.core.EntityValue entityValue,
double probability,
boolean mergeSupport) |
| Modifier and Type | Method and Description |
|---|---|
int |
component1()
Start
|
int |
component2()
End
|
ai.tock.nlp.core.Entity |
component3()
Entity definition.
|
ai.tock.nlp.entity.Value |
component4()
Current value if evaluated.
|
boolean |
component5()
Is this entity has been evaluated
|
java.util.List<ai.tock.nlp.front.shared.parser.ParsedEntityValue> |
component6()
Sub entities if any.
|
double |
component7()
Recognition probability.
|
boolean |
component8()
Does this entity value support merge with other values
|
ParsedEntityValue |
copy(int start,
int end,
ai.tock.nlp.core.Entity entity,
ai.tock.nlp.entity.Value value,
boolean evaluated,
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.
|
boolean |
equals(java.lang.Object p) |
int |
getEnd()
End
|
ai.tock.nlp.core.Entity |
getEntity()
Entity definition.
|
boolean |
getEvaluated()
Is this entity has been evaluated
|
boolean |
getMergeSupport()
Does this entity value support merge with other values
|
double |
getProbability()
Recognition probability.
|
int |
getStart()
Start
|
java.util.List<ai.tock.nlp.front.shared.parser.ParsedEntityValue> |
getSubEntities()
Sub entities if any.
|
ai.tock.nlp.entity.Value |
getValue()
Current value if evaluated.
|
int |
hashCode() |
java.lang.String |
toString() |
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()
public int hashCode()
public boolean equals(@Nullable
java.lang.Object p)