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