public class ClassifiedEntity
A classification for an entity.
public ClassifiedEntity(@NotNull
java.lang.String type,
@NotNull
java.lang.String role,
int start,
int end,
@NotNull
java.util.List<ai.tock.nlp.front.shared.config.ClassifiedEntity> subEntities)
A classification for an entity.
type - The entity type.role - The entity role.start - Start index of the entity in the text.end - End index (exclusive) of the entity in the text.subEntities - The sub entities of the entity.public ClassifiedEntity(@NotNull
ParsedEntityValue value)
public ClassifiedEntity(@NotNull
ai.tock.nlp.core.EntityValue value)
@Nullable
public ai.tock.nlp.core.EntityValue toEntityValue(@NotNull
kotlin.jvm.functions.Function2<? super java.lang.String,? super java.lang.String,ai.tock.nlp.core.Entity> entityProvider)
@Nullable
public ai.tock.nlp.core.EntityRecognition toEntityRecognition(@NotNull
kotlin.jvm.functions.Function2<? super java.lang.String,? super java.lang.String,ai.tock.nlp.core.Entity> entityProvider)
@Nullable
public ai.tock.nlp.core.Entity toEntity(@NotNull
kotlin.jvm.functions.Function2<? super java.lang.String,? super java.lang.String,ai.tock.nlp.core.Entity> entityProvider)
public boolean containsEntityOrSubEntity(@NotNull
java.lang.String entityType)
Does this entity contains the specified entity type ?
@NotNull public java.lang.String getType()
The entity type.
@NotNull public java.lang.String getRole()
The entity role.
public int getStart()
Start index of the entity in the text.
public int getEnd()
End index
(exclusive) of the entity in the text.
@NotNull public java.util.List<ai.tock.nlp.front.shared.config.ClassifiedEntity> getSubEntities()
The sub entities of the entity.
@NotNull public java.lang.String component1()
The entity type.
@NotNull public java.lang.String component2()
The entity role.
public int component3()
Start index of the entity in the text.
public int component4()
End index
(exclusive) of the entity in the text.
@NotNull public java.util.List<ai.tock.nlp.front.shared.config.ClassifiedEntity> component5()
The sub entities of the entity.
@NotNull public ClassifiedEntity copy(@NotNull java.lang.String type, @NotNull java.lang.String role, int start, int end, @NotNull java.util.List<ai.tock.nlp.front.shared.config.ClassifiedEntity> subEntities)
A classification for an entity.
@NotNull public java.lang.String toString()
A classification for an entity.
public int hashCode()
A classification for an entity.
public boolean equals(@Nullable
java.lang.Object p)
A classification for an entity.