-
- All Implemented Interfaces:
-
ai.tock.nlp.core.IntOpenRange,kotlin.Comparable
public final class ClassifiedEntity implements IntOpenRangeA classification for an entity.
-
-
Constructor Summary
Constructors Constructor Description ClassifiedEntity(ParsedEntityValue value)ClassifiedEntity(EntityValue value)ClassifiedEntity(String type, String role, Integer start, Integer end, List<ClassifiedEntity> subEntities)
-
Method Summary
Modifier and Type Method Description final StringgetType()The entity type. final StringgetRole()The entity role. IntegergetStart()Start index of the entity in the text. IntegergetEnd()End index (exclusive) of the entity in the text. final List<ClassifiedEntity>getSubEntities()The sub entities of the entity. final EntityValuetoEntityValue(Function2<String, String, Entity> entityProvider)final EntityRecognitiontoEntityRecognition(Function2<String, String, Entity> entityProvider)final EntitytoEntity(Function2<String, String, Entity> entityProvider)final BooleancontainsEntityOrSubEntity(String entityType)Does this entity contains the specified entity type ? -
-
Constructor Detail
-
ClassifiedEntity
ClassifiedEntity(ParsedEntityValue value)
-
ClassifiedEntity
ClassifiedEntity(EntityValue value)
-
-
Method Detail
-
getSubEntities
final List<ClassifiedEntity> getSubEntities()
The sub entities of the entity.
-
toEntityValue
final EntityValue toEntityValue(Function2<String, String, Entity> entityProvider)
-
toEntityRecognition
final EntityRecognition toEntityRecognition(Function2<String, String, Entity> entityProvider)
-
containsEntityOrSubEntity
final Boolean containsEntityOrSubEntity(String entityType)
Does this entity contains the specified entity type ?
-
-
-
-