-
- All Implemented Interfaces:
-
ai.tock.nlp.core.IntOpenRange,kotlin.Comparable
public final class ParsedEntityValue implements IntOpenRangeThis 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classParsedEntityValue.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Integerstartprivate final Integerendprivate final Entityentityprivate final Valuevalueprivate final Booleanevaluatedprivate final List<ParsedEntityValue>subEntitiesprivate final Doubleprobabilityprivate final BooleanmergeSupport
-
Constructor Summary
Constructors Constructor Description ParsedEntityValue(Integer start, Integer end, Entity entity, Object value, Boolean evaluated, List<ParsedEntityValue> subEntities, Double probability, Boolean mergeSupport)ParsedEntityValue(EntityValue entityValue, Double probability, Boolean mergeSupport)ParsedEntityValue(Integer start, Integer end, Entity entity, Value value, Boolean evaluated, List<ParsedEntityValue> subEntities, Double probability, Boolean mergeSupport)
-
Method Summary
Modifier and Type Method Description final ParsedEntityValueobfuscate(String obfuscatedQuery)Obfuscates the entity. final Integercomponent1()final Integercomponent2()final Entitycomponent3()final Valuecomponent4()final Booleancomponent5()final List<ParsedEntityValue>component6()final Doublecomponent7()final Booleancomponent8()final ParsedEntityValuecopy(Integer start, Integer end, Entity entity, Value value, Boolean evaluated, List<ParsedEntityValue> subEntities, Double probability, Boolean mergeSupport)IntegergetStart()Start (inclusive) text index of the entity. IntegergetEnd()End (exclusive) text index of the entity. final EntitygetEntity()Entity definition. final ValuegetValue()Current value if evaluated. final BooleangetEvaluated()Is this entity has been evaluated ? final List<ParsedEntityValue>getSubEntities()Sub entities if any. final DoublegetProbability()Recognition probability. final BooleangetMergeSupport()Does this entity value support merge with other values ? -
Methods inherited from class ai.tock.nlp.front.shared.parser.ParsedEntityValue
compareTo, isSameRange, overlap, overlap, size, textValue, toClosedRange -
Methods inherited from class kotlin.Comparable
equals, hashCode, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ParsedEntityValue
ParsedEntityValue(Integer start, Integer end, Entity entity, Object value, Boolean evaluated, List<ParsedEntityValue> subEntities, Double probability, Boolean mergeSupport)
-
ParsedEntityValue
ParsedEntityValue(EntityValue entityValue, Double probability, Boolean mergeSupport)
-
-
Method Detail
-
obfuscate
final ParsedEntityValue obfuscate(String obfuscatedQuery)
Obfuscates the entity.
-
component1
final Integer component1()
-
component2
final Integer component2()
-
component3
final Entity component3()
-
component4
final Value component4()
-
component5
final Boolean component5()
-
component6
final List<ParsedEntityValue> component6()
-
component7
final Double component7()
-
component8
final Boolean component8()
-
copy
final ParsedEntityValue copy(Integer start, Integer end, Entity entity, Value value, Boolean evaluated, List<ParsedEntityValue> subEntities, Double probability, Boolean mergeSupport)
-
getEntity
final Entity getEntity()
Entity definition.
-
getValue
final Value getValue()
Current value if evaluated.
-
getEvaluated
final Boolean getEvaluated()
Is this entity has been evaluated ?
-
getSubEntities
final List<ParsedEntityValue> getSubEntities()
Sub entities if any.
-
getProbability
final Double getProbability()
Recognition probability.
-
getMergeSupport
final Boolean getMergeSupport()
Does this entity value support merge with other values ?
-
-
-
-