public ApplicationConfiguration
@NotNull ApplicationDefinition save(@NotNull ApplicationDefinition application)
void deleteApplicationById(@NotNull
org.litote.kmongo.Id<ai.tock.nlp.front.shared.config.ApplicationDefinition> id)
@Nullable ApplicationDefinition getApplicationByNamespaceAndName(@NotNull java.lang.String namespace, @NotNull java.lang.String name)
@Nullable ApplicationDefinition getApplicationById(@NotNull org.litote.kmongo.Id<ai.tock.nlp.front.shared.config.ApplicationDefinition> id)
@NotNull java.util.List<ai.tock.nlp.front.shared.config.ApplicationDefinition> getApplications()
boolean removeIntentFromApplication(@NotNull
ApplicationDefinition application,
@NotNull
org.litote.kmongo.Id<ai.tock.nlp.front.shared.config.IntentDefinition> intentId)
Remove intent from application.
@NotNull
java.util.List<ai.tock.nlp.front.shared.config.ClassifiedSentence> getSentences(@Nullable
java.util.Set<? extends org.litote.kmongo.Id<ai.tock.nlp.front.shared.config.IntentDefinition>> intents,
@Nullable
java.util.Locale language,
@Nullable
ClassifiedSentenceStatus status)
Get the sentences with the specified criteria.
error - if all parameters are nullvoid deleteSentencesByStatus(@NotNull
ClassifiedSentenceStatus status)
void save(@NotNull
ClassifiedSentence sentence,
@Nullable
java.lang.String user)
@NotNull SentencesQueryResult search(@NotNull SentencesQuery query)
void switchSentencesStatus(@NotNull
java.util.List<ai.tock.nlp.front.shared.config.ClassifiedSentence> sentences,
@NotNull
ClassifiedSentenceStatus newStatus)
int switchSentencesIntent(@NotNull
java.util.List<ai.tock.nlp.front.shared.config.ClassifiedSentence> sentences,
@NotNull
ApplicationDefinition targetApplication,
@NotNull
org.litote.kmongo.Id<ai.tock.nlp.front.shared.config.IntentDefinition> targetIntentId)
Switch specified sentences to a new intent.
int switchSentencesEntity(@NotNull
java.util.List<ai.tock.nlp.front.shared.config.ClassifiedSentence> sentences,
@NotNull
ApplicationDefinition targetApplication,
@NotNull
EntityDefinition oldEntity,
@NotNull
EntityDefinition newEntity)
Switch old entity to new entity.
void save(@NotNull
EntityTypeDefinition entityType)
@NotNull java.util.List<ai.tock.nlp.front.shared.config.EntityTypeDefinition> getEntityTypes()
@Nullable EntityTypeDefinition getEntityTypeByName(@NotNull java.lang.String name)
@Nullable
ai.tock.nlp.core.DictionaryData getDictionaryDataByEntityName(@NotNull
java.lang.String qualifiedName)
Load DictionaryData for entity qualified name.
void save(@NotNull
ai.tock.nlp.core.DictionaryData data)
Save DictionaryData.
boolean deleteEntityTypeByName(@NotNull
java.lang.String name)
Delete the class EntityTypeDefinition and cleanup all sentences from this entity type.
class EntityTypeDefinitionvoid updateEntityDefinition(@NotNull
java.lang.String namespace,
@NotNull
java.lang.String applicationName,
@NotNull
EntityDefinition entity)
Update matching entity definition of all intents of the specified application.
@NotNull
java.util.List<ai.tock.nlp.front.shared.config.IntentDefinition> getIntentsByApplicationId(@NotNull
org.litote.kmongo.Id<ai.tock.nlp.front.shared.config.ApplicationDefinition> applicationId)
@Nullable IntentDefinition getIntentById(@NotNull org.litote.kmongo.Id<ai.tock.nlp.front.shared.config.IntentDefinition> id)
@Nullable IntentDefinition getIntentByNamespaceAndName(@NotNull java.lang.String namespace, @NotNull java.lang.String name)
void save(@NotNull
IntentDefinition intent)
@Nullable
org.litote.kmongo.Id<ai.tock.nlp.front.shared.config.IntentDefinition> getIntentIdByQualifiedName(@NotNull
java.lang.String name)
boolean removeEntityFromIntent(@NotNull
ApplicationDefinition application,
@NotNull
IntentDefinition intent,
@NotNull
java.lang.String entityType,
@NotNull
java.lang.String role)
Remove entity from intent.
boolean removeSubEntityFromEntity(@NotNull
ApplicationDefinition application,
@NotNull
EntityTypeDefinition entityType,
@NotNull
java.lang.String role)
Remove a sub entity from an entity.
@NotNull java.util.Set<ai.tock.nlp.core.NlpEngineType> getSupportedNlpEngineTypes()
Returns supported NLP engines.
void deletePredefinedValueByName(@NotNull
java.lang.String entityTypeName,
@NotNull
java.lang.String predefinedValue)
void deletePredefinedValueLabelByName(@NotNull
java.lang.String entityTypeName,
@NotNull
java.lang.String predefinedValue,
@NotNull
java.util.Locale locale,
@NotNull
java.lang.String label)
void initializeConfiguration()
Load the configuration cache.
@NotNull
ai.tock.nlp.core.configuration.NlpApplicationConfiguration getCurrentModelConfiguration(@NotNull
java.lang.String applicationName,
@NotNull
ai.tock.nlp.core.NlpEngineType nlpEngineType)
Returns the current model configuration.
void updateModelConfiguration(@NotNull
java.lang.String applicationName,
@NotNull
ai.tock.nlp.core.NlpEngineType engineType,
@NotNull
ai.tock.nlp.core.configuration.NlpApplicationConfiguration configuration)
Updates the model configuration for the given application name.
@NotNull
java.util.List<ai.tock.nlp.front.shared.user.UserNamespace> getNamespaces(@NotNull
java.lang.String user)
Returns all the namespaces of a user.
@NotNull
java.util.List<ai.tock.nlp.front.shared.user.UserNamespace> getUsers(@NotNull
java.lang.String namespace)
Returns all the users of a namespace.
void saveNamespace(@NotNull
UserNamespace namespace)
Persists namespace.
void deleteNamespace(@NotNull
java.lang.String user,
@NotNull
java.lang.String namespace)
Delete namespace.
void setCurrentNamespace(@NotNull
java.lang.String user,
@NotNull
java.lang.String namespace)
Set current namespace for selected user.
boolean isNamespaceOwner(@NotNull
java.lang.String user,
@NotNull
java.lang.String namespace)
Is it the namespace owner ?
boolean hasNamespace(@NotNull
java.lang.String user,
@NotNull
java.lang.String namespace)
Is this user has the namespace ?