Package ai.tock.nlp.front.shared.parser
Class ParsedEntityValue
-
- 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
-
-
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, Value value, Boolean evaluated, List<ParsedEntityValue> subEntities, Double probability, Boolean mergeSupport)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)
-
Method Summary
Modifier and Type Method Description IntegergetStart()IntegergetEnd()final EntitygetEntity()final ValuegetValue()final BooleangetEvaluated()final List<ParsedEntityValue>getSubEntities()final DoublegetProbability()final BooleangetMergeSupport()final ParsedEntityValueobfuscate(String obfuscatedQuery)Obfuscates the entity. -
-
Constructor Detail
-
ParsedEntityValue
ParsedEntityValue(Integer start, Integer end, Entity entity, Value value, Boolean evaluated, List<ParsedEntityValue> subEntities, Double probability, Boolean mergeSupport)
-
ParsedEntityValue
ParsedEntityValue(Integer start, Integer end, Entity entity, Object value, Boolean evaluated, List<ParsedEntityValue> subEntities, Double probability, Boolean mergeSupport)
-
-
Method Detail
-
getEntity
final Entity getEntity()
-
getValue
final Value getValue()
-
getEvaluated
final Boolean getEvaluated()
-
getSubEntities
final List<ParsedEntityValue> getSubEntities()
-
getProbability
final Double getProbability()
-
getMergeSupport
final Boolean getMergeSupport()
-
obfuscate
final ParsedEntityValue obfuscate(String obfuscatedQuery)
Obfuscates the entity.
-
-
-
-