public class EntityValue
A (may be not yet evaluated) value linked to an entity stored in the context.
public EntityValue(@Nullable
java.lang.Integer start,
@Nullable
java.lang.Integer end,
@NotNull
ai.tock.nlp.api.client.model.Entity entity,
@Nullable
java.lang.String content,
@Nullable
ai.tock.nlp.entity.Value value,
boolean evaluated,
@NotNull
java.util.List<ai.tock.bot.engine.dialog.EntityValue> subEntities,
double probability,
boolean mergeSupport)
A (may be not yet evaluated) value linked to an entity stored in the context.
start - If extracted from a sentence, start position of the text content in this sentence.end - If extracted from a sentence, end position of the text content in this sentence.entity - The linked Entity.content - Text content if any.value - Value if any.evaluated - Is the value has been evaluated?subEntities - Sub entity values if any.probability - The probability of the value.mergeSupport - Does this value support merge?public EntityValue(@NotNull
ai.tock.nlp.api.client.model.NlpResult nlpResult,
@NotNull
ai.tock.nlp.api.client.model.NlpEntityValue value)
public EntityValue(@NotNull
java.lang.String sentence,
@NotNull
ai.tock.nlp.api.client.model.NlpEntityValue value)
public EntityValue(@NotNull
ai.tock.nlp.api.client.model.Entity entity,
@Nullable
ai.tock.nlp.entity.Value value,
@Nullable
java.lang.String content)
@NotNull public java.lang.String toString()
@Nullable public java.lang.Integer getStart()
If extracted from a sentence,
start position of the text content in this sentence.
@Nullable public java.lang.Integer getEnd()
If extracted from a sentence,
end position of the text content in this sentence.
@NotNull public ai.tock.nlp.api.client.model.Entity getEntity()
The linked
Entity.
@Nullable public java.lang.String getContent()
Text content if any.
@Nullable public ai.tock.nlp.entity.Value getValue()
Value if any.
public boolean getEvaluated()
Is the value has been evaluated?
@NotNull public java.util.List<ai.tock.bot.engine.dialog.EntityValue> getSubEntities()
Sub entity values if any.
public double getProbability()
The probability of the value.
public boolean getMergeSupport()
Does this value support merge?
@Nullable public java.lang.Integer component1()
If extracted from a sentence,
start position of the text content in this sentence.
@Nullable public java.lang.Integer component2()
If extracted from a sentence,
end position of the text content in this sentence.
@NotNull public ai.tock.nlp.api.client.model.Entity component3()
The linked
Entity.
@Nullable public java.lang.String component4()
Text content if any.
@Nullable public ai.tock.nlp.entity.Value component5()
Value if any.
public boolean component6()
Is the value has been evaluated?
@NotNull public java.util.List<ai.tock.bot.engine.dialog.EntityValue> component7()
Sub entity values if any.
public double component8()
The probability of the value.
public boolean component9()
Does this value support merge?
@NotNull public EntityValue copy(@Nullable java.lang.Integer start, @Nullable java.lang.Integer end, @NotNull ai.tock.nlp.api.client.model.Entity entity, @Nullable java.lang.String content, @Nullable ai.tock.nlp.entity.Value value, boolean evaluated, @NotNull java.util.List<ai.tock.bot.engine.dialog.EntityValue> subEntities, double probability, boolean mergeSupport)
A (may be not yet evaluated) value linked to an entity stored in the context.
public int hashCode()
A (may be not yet evaluated) value linked to an entity stored in the context.
public boolean equals(@Nullable
java.lang.Object p)
A (may be not yet evaluated) value linked to an entity stored in the context.