-
- 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 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 ? final Stringcomponent1()final Stringcomponent2()final Integercomponent3()final Integercomponent4()final List<ClassifiedEntity>component5()final ClassifiedEntitycopy(String type, String role, Integer start, Integer end, List<ClassifiedEntity> subEntities)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. -
Methods inherited from class ai.tock.nlp.front.shared.config.ClassifiedEntity
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
-
ClassifiedEntity
ClassifiedEntity(ParsedEntityValue value)
-
ClassifiedEntity
ClassifiedEntity(EntityValue value)
-
-
Method Detail
-
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 ?
-
component1
final String component1()
-
component2
final String component2()
-
component3
final Integer component3()
-
component4
final Integer component4()
-
component5
final List<ClassifiedEntity> component5()
-
copy
final ClassifiedEntity copy(String type, String role, Integer start, Integer end, List<ClassifiedEntity> subEntities)
-
getSubEntities
final List<ClassifiedEntity> getSubEntities()
The sub entities of the entity.
-
-
-
-