public class ClassifiedSentence
A sentence with its classification for a given Locale and an class ApplicationDefinition.
class ApplicationDefinitionpublic ClassifiedSentence(@NotNull
java.lang.String text,
@NotNull
java.util.Locale language,
@NotNull
org.litote.kmongo.Id<ai.tock.nlp.front.shared.config.ApplicationDefinition> applicationId,
@NotNull
java.time.Instant creationDate,
@NotNull
java.time.Instant updateDate,
@NotNull
ClassifiedSentenceStatus status,
@NotNull
Classification classification,
@Nullable
java.lang.Double lastIntentProbability,
@Nullable
java.lang.Double lastEntityProbability,
@Nullable
java.time.Instant lastUsage,
long usageCount,
long unknownCount,
boolean forReview,
@Nullable
java.lang.String reviewComment,
@Nullable
java.lang.String qualifier,
@NotNull
java.util.Map<java.lang.String,java.lang.Double> otherIntentsProbabilities)
A sentence with its classification for a given Locale and an class ApplicationDefinition.
text - The text of the sentence.language - The locale.applicationId - The application id.creationDate - Date of creation of this sentence.updateDate - Last update date.status - The current status of the sentence.classification - The current classification of the sentence.lastIntentProbability - If not yet validated, the intent probability of the last evaluation.lastEntityProbability - If not yet validated, the average entity probability of the last evaluation.lastUsage - The last usage date (for a real user) if any.usageCount - The total number of uses of this sentence.unknownCount - The total number of unknown count generated by this sentence.forReview - Tag the sentence for another person to reviewreviewComment - Comment to help the other person to reviewqualifier - Last person that has qualified the sentenceotherIntentsProbabilities - Other intents with significant probabilities.class ApplicationDefinitionpublic ClassifiedSentence(@NotNull
ParseResult result,
@NotNull
java.util.Locale language,
@NotNull
org.litote.kmongo.Id<ai.tock.nlp.front.shared.config.ApplicationDefinition> applicationId,
@NotNull
org.litote.kmongo.Id<ai.tock.nlp.front.shared.config.IntentDefinition> intentId,
double lastIntentProbability,
double lastEntityProbability)
public boolean hasSameContent(@Nullable
ClassifiedSentence sentence)
Check if the sentence has the same content (status, creation & update dates excluded)
@NotNull
public ai.tock.nlp.core.sample.SampleExpression toSampleExpression(@NotNull
kotlin.jvm.functions.Function1<? super org.litote.kmongo.Id<ai.tock.nlp.front.shared.config.IntentDefinition>,ai.tock.nlp.core.Intent> intentProvider,
@NotNull
kotlin.jvm.functions.Function1<? super java.lang.String,ai.tock.nlp.core.EntityType> entityTypeProvider)
Build an expression from this sentence.
intentProvider - intent id -> intent providerentityTypeProvider - entity type name -> entity type provider@NotNull public java.lang.String getText()
The text of the sentence.
@NotNull public java.util.Locale getLanguage()
The locale.
@NotNull public org.litote.kmongo.Id<ai.tock.nlp.front.shared.config.ApplicationDefinition> getApplicationId()
The application id.
@NotNull public java.time.Instant getCreationDate()
Date of creation of this sentence.
@NotNull public java.time.Instant getUpdateDate()
Last update date.
@NotNull public ClassifiedSentenceStatus getStatus()
The current status of the sentence.
@NotNull public Classification getClassification()
The current classification of the sentence.
@Nullable public java.lang.Double getLastIntentProbability()
If not yet validated,
the intent probability of the last evaluation.
@Nullable public java.lang.Double getLastEntityProbability()
If not yet validated,
the average entity probability of the last evaluation.
@Nullable public java.time.Instant getLastUsage()
The last usage date
(for a real user) if any.
public long getUsageCount()
The total number of uses of this sentence.
public long getUnknownCount()
The total number of unknown count generated by this sentence.
public boolean getForReview()
Tag the sentence for another person to review
@Nullable public java.lang.String getReviewComment()
Comment to help the other person to review
@Nullable public java.lang.String getQualifier()
Last person that has qualified the sentence
@NotNull public java.util.Map<java.lang.String,java.lang.Double> getOtherIntentsProbabilities()
Other intents with significant probabilities.
@NotNull public java.lang.String component1()
The text of the sentence.
@NotNull public java.util.Locale component2()
The locale.
@NotNull public org.litote.kmongo.Id<ai.tock.nlp.front.shared.config.ApplicationDefinition> component3()
The application id.
@NotNull public java.time.Instant component4()
Date of creation of this sentence.
@NotNull public java.time.Instant component5()
Last update date.
@NotNull public ClassifiedSentenceStatus component6()
The current status of the sentence.
@NotNull public Classification component7()
The current classification of the sentence.
@Nullable public java.lang.Double component8()
If not yet validated,
the intent probability of the last evaluation.
@Nullable public java.lang.Double component9()
If not yet validated,
the average entity probability of the last evaluation.
@Nullable public java.time.Instant component10()
The last usage date
(for a real user) if any.
public long component11()
The total number of uses of this sentence.
public long component12()
The total number of unknown count generated by this sentence.
public boolean component13()
Tag the sentence for another person to review
@Nullable public java.lang.String component14()
Comment to help the other person to review
@Nullable public java.lang.String component15()
Last person that has qualified the sentence
@NotNull public java.util.Map<java.lang.String,java.lang.Double> component16()
Other intents with significant probabilities.
@NotNull public ClassifiedSentence copy(@NotNull java.lang.String text, @NotNull java.util.Locale language, @NotNull org.litote.kmongo.Id<ai.tock.nlp.front.shared.config.ApplicationDefinition> applicationId, @NotNull java.time.Instant creationDate, @NotNull java.time.Instant updateDate, @NotNull ClassifiedSentenceStatus status, @NotNull Classification classification, @Nullable java.lang.Double lastIntentProbability, @Nullable java.lang.Double lastEntityProbability, @Nullable java.time.Instant lastUsage, long usageCount, long unknownCount, boolean forReview, @Nullable java.lang.String reviewComment, @Nullable java.lang.String qualifier, @NotNull java.util.Map<java.lang.String,java.lang.Double> otherIntentsProbabilities)
A sentence with its classification for a given Locale and an class ApplicationDefinition.
class ApplicationDefinition@NotNull public java.lang.String toString()
public int hashCode()
public boolean equals(@Nullable
java.lang.Object p)