public ModelUpdater
Manage updates of NLP models (both intents and entity models).
void updateIntentsModelForApplication(@NotNull
java.util.List<ai.tock.nlp.front.shared.config.ClassifiedSentence> validatedSentences,
@NotNull
ApplicationDefinition application,
@NotNull
java.util.Locale language,
@NotNull
ai.tock.nlp.core.NlpEngineType engineType,
boolean onlyIfNotExists)
Update intents model.
void updateEntityModelForIntent(@NotNull
java.util.List<ai.tock.nlp.front.shared.config.ClassifiedSentence> validatedSentences,
@NotNull
ApplicationDefinition application,
@NotNull
org.litote.kmongo.Id<ai.tock.nlp.front.shared.config.IntentDefinition> intentId,
@NotNull
java.util.Locale language,
@NotNull
ai.tock.nlp.core.NlpEngineType engineType,
boolean onlyIfNotExists)
Update all entities model of intent.
void updateEntityModelForEntityType(@NotNull
java.util.List<ai.tock.nlp.front.shared.config.ClassifiedSentence> validatedSentences,
@NotNull
ApplicationDefinition application,
@NotNull
EntityTypeDefinition entityTypeDefinition,
@NotNull
java.util.Locale language,
@NotNull
ai.tock.nlp.core.NlpEngineType engineType,
boolean onlyIfNotExists)
void deleteOrphans()
Delete orphans intent and entity models.
@NotNull java.util.List<ai.tock.nlp.front.shared.build.ModelBuildTrigger> getTriggers()
Get all available triggers.
void triggerBuild(@NotNull
ModelBuildTrigger trigger)
Save the trigger.
void deleteTrigger(@NotNull
ModelBuildTrigger trigger)
Delete the trigger.
@NotNull ModelBuildQueryResult builds(@NotNull org.litote.kmongo.Id<ai.tock.nlp.front.shared.config.ApplicationDefinition> applicationId, @NotNull java.util.Locale language, int start, int size)
Get builds sorted by date.