public class Classification
A classification for a sentence.
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)