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