public class Classification
A classification for a sentence.
| Constructor and Description |
|---|
Classification(org.litote.kmongo.Id<ai.tock.nlp.front.shared.config.IntentDefinition> intentId,
java.util.List<ai.tock.nlp.front.shared.config.ClassifiedEntity> entities)
A classification for a sentence.
|
Classification(ParseResult query,
org.litote.kmongo.Id<ai.tock.nlp.front.shared.config.IntentDefinition> intentId) |
| Modifier and Type | Method and Description |
|---|---|
org.litote.kmongo.Id<ai.tock.nlp.front.shared.config.IntentDefinition> |
component1()
The intent id.
|
java.util.List<ai.tock.nlp.front.shared.config.ClassifiedEntity> |
component2()
The entities.
|
boolean |
containsEntityOrSubEntity(java.lang.String entityType)
Does this classification contains the specified entity type ?
|
Classification |
copy(org.litote.kmongo.Id<ai.tock.nlp.front.shared.config.IntentDefinition> intentId,
java.util.List<ai.tock.nlp.front.shared.config.ClassifiedEntity> entities)
A classification for a sentence.
|
boolean |
equals(java.lang.Object p) |
java.util.List<ai.tock.nlp.front.shared.config.ClassifiedEntity> |
getEntities()
The entities.
|
org.litote.kmongo.Id<ai.tock.nlp.front.shared.config.IntentDefinition> |
getIntentId()
The intent id.
|
int |
hashCode() |
java.lang.String |
toString() |
public Classification(@NotNull
org.litote.kmongo.Id<ai.tock.nlp.front.shared.config.IntentDefinition> intentId,
@NotNull
java.util.List<ai.tock.nlp.front.shared.config.ClassifiedEntity> entities)
A classification for a sentence.
intentId - The intent id.entities - The entities.public Classification(@NotNull
ParseResult query,
@NotNull
org.litote.kmongo.Id<ai.tock.nlp.front.shared.config.IntentDefinition> intentId)
public boolean containsEntityOrSubEntity(@NotNull
java.lang.String entityType)
Does this classification contains the specified entity type ?
@NotNull public org.litote.kmongo.Id<ai.tock.nlp.front.shared.config.IntentDefinition> getIntentId()
The intent id.
@NotNull public java.util.List<ai.tock.nlp.front.shared.config.ClassifiedEntity> getEntities()
The entities.
@NotNull public org.litote.kmongo.Id<ai.tock.nlp.front.shared.config.IntentDefinition> component1()
The intent id.
@NotNull public java.util.List<ai.tock.nlp.front.shared.config.ClassifiedEntity> component2()
The entities.
@NotNull public Classification copy(@NotNull org.litote.kmongo.Id<ai.tock.nlp.front.shared.config.IntentDefinition> intentId, @NotNull java.util.List<ai.tock.nlp.front.shared.config.ClassifiedEntity> entities)
A classification for a sentence.
@NotNull public java.lang.String toString()
public int hashCode()
public boolean equals(@Nullable
java.lang.Object p)