public ApplicationCodec
To import and export applications, intents, entities and sentences.
@NotNull ApplicationDump export(@NotNull org.litote.kmongo.Id<ai.tock.nlp.front.shared.config.ApplicationDefinition> applicationId, @NotNull DumpType dumpType)
Export application dump.
@NotNull ApplicationImportConfiguration prepareImport(@NotNull ApplicationDump dump)
Analyse the application dump and present options.
@NotNull ImportReport import(@NotNull java.lang.String namespace, @NotNull ApplicationDump dump, @NotNull ApplicationImportConfiguration configuration)
Import the application dump.
@NotNull ImportReport importSentences(@NotNull java.lang.String namespace, @NotNull SentencesDump dump)
Import the sentences dump.
@NotNull SentencesDump exportSentences(@NotNull org.litote.kmongo.Id<ai.tock.nlp.front.shared.config.ApplicationDefinition> applicationId, @NotNull DumpType dumpType, @Nullable java.lang.String intent, @Nullable java.util.Locale locale)
Export sentences dump.
intent - if specified, only the sentences classified as this intent are exportedlocale - if specified, only the sentences for this locale are exported@NotNull SentencesDump exportSentences(@NotNull SentencesQuery query, @NotNull DumpType dumpType)
Export sentences dump.