-
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 StringtoString()final Integercomponent1()final Integercomponent2()final Entitycomponent3()final Stringcomponent4()final Valuecomponent5()final Booleancomponent6()final List<EntityValue>component7()final Doublecomponent8()final Booleancomponent9()final EntityValuecopy(Integer start, Integer end, Entity entity, String content, Value value, Boolean evaluated, List<EntityValue> subEntities, Double probability, Boolean mergeSupport)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? -
-
Method Detail
-
component1
final Integer component1()
-
component2
final Integer component2()
-
component3
final Entity component3()
-
component4
final String component4()
-
component5
final Value component5()
-
component6
final Boolean component6()
-
component7
final List<EntityValue> component7()
-
component8
final Double component8()
-
component9
final Boolean component9()
-
copy
final EntityValue copy(Integer start, Integer end, Entity entity, String content, Value value, Boolean evaluated, List<EntityValue> subEntities, Double probability, Boolean mergeSupport)
-
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?
-
-
-
-