-
- All Implemented Interfaces:
-
ai.tock.nlp.core.IntOpenRange,kotlin.Comparable
public final class SampleEntity implements IntOpenRange
-
-
Field Summary
Fields Modifier and Type Field Description private final Entitydefinitionprivate final List<SampleEntity>subEntitiesprivate final Integerstartprivate final Integerend
-
Constructor Summary
Constructors Constructor Description SampleEntity(Entity definition, List<SampleEntity> subEntities, Integer start, Integer end)
-
Method Summary
Modifier and Type Method Description final BooleanisType(EntityType entityType)final Entitycomponent1()final List<SampleEntity>component2()final Integercomponent3()final Integercomponent4()final SampleEntitycopy(Entity definition, List<SampleEntity> subEntities, Integer start, Integer end)final EntitygetDefinition()final List<SampleEntity>getSubEntities()IntegergetStart()IntegergetEnd()-
Methods inherited from class ai.tock.nlp.core.sample.SampleEntity
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
-
SampleEntity
SampleEntity(Entity definition, List<SampleEntity> subEntities, Integer start, Integer end)
-
-
Method Detail
-
isType
final Boolean isType(EntityType entityType)
-
component1
final Entity component1()
-
component2
final List<SampleEntity> component2()
-
component3
final Integer component3()
-
component4
final Integer component4()
-
copy
final SampleEntity copy(Entity definition, List<SampleEntity> subEntities, Integer start, Integer end)
-
getDefinition
final Entity getDefinition()
-
getSubEntities
final List<SampleEntity> getSubEntities()
-
-
-
-