Package ai.tock.bot.engine.dialog
Class EntityValue
-
- All Implemented Interfaces:
public final class EntityValueA (may be not yet evaluated) value linked to an entity stored in the context.
-
-
Field Summary
Fields Modifier and Type Field Description private final Integerstartprivate final Integerendprivate final Entityentityprivate final Stringcontentprivate final Valuevalueprivate final Booleanevaluatedprivate final List<EntityValue>subEntitiesprivate final Doubleprobabilityprivate final BooleanmergeSupport
-
Constructor Summary
Constructors Constructor Description EntityValue(NlpResult nlpResult, NlpEntityValue value)EntityValue(String sentence, NlpEntityValue value)EntityValue(Entity entity, Value value, String content)EntityValue(Integer start, Integer end, Entity entity, String content, Value value, Boolean evaluated, List<EntityValue> subEntities, Double probability, Boolean mergeSupport)
-
Method Summary
Modifier and Type Method Description final IntegergetStart()If extracted from a sentence, start position of the text content in this sentence. final IntegergetEnd()If extracted from a sentence, end position of the text content in this sentence. final EntitygetEntity()The linked Entity. final StringgetContent()Text content if any. final ValuegetValue()Value if any. final BooleangetEvaluated()Is the value has been evaluated? final List<EntityValue>getSubEntities()Sub entity values if any. final DoublegetProbability()The probability of the value. final BooleangetMergeSupport()Does this value support merge? StringtoString()-
-
Method Detail
-
getStart
final Integer getStart()
If extracted from a sentence, start position of the text content in this sentence.
-
getEnd
final Integer getEnd()
If extracted from a sentence, end position of the text content in this sentence.
-
getEntity
final Entity getEntity()
The linked Entity.
-
getContent
final String getContent()
Text content if any.
-
getValue
final Value getValue()
Value if any.
-
getEvaluated
final Boolean getEvaluated()
Is the value has been evaluated?
-
getSubEntities
final List<EntityValue> getSubEntities()
Sub entity values if any.
-
getProbability
final Double getProbability()
The probability of the value.
-
getMergeSupport
final Boolean getMergeSupport()
Does this value support merge?
-
-
-
-