public ApplicationCodec
To import and export applications, intents, entities and sentences.
| Modifier and Type | Method and Description |
|---|---|
ApplicationDump |
export(org.litote.kmongo.Id<ai.tock.nlp.front.shared.config.ApplicationDefinition> applicationId,
DumpType dumpType)
Export application dump.
|
SentencesDump |
exportSentences(org.litote.kmongo.Id<ai.tock.nlp.front.shared.config.ApplicationDefinition> applicationId,
DumpType dumpType,
java.lang.String intent,
java.util.Locale locale)
Export sentences dump.
|
SentencesDump |
exportSentences(SentencesQuery query,
DumpType dumpType)
Export sentences dump.
|
ImportReport |
import(java.lang.String namespace,
ApplicationDump dump,
ApplicationImportConfiguration configuration)
Import the application dump.
|
ImportReport |
importSentences(java.lang.String namespace,
SentencesDump dump)
Import the sentences dump.
|
ApplicationImportConfiguration |
prepareImport(ApplicationDump dump)
Analyse the application dump and present options.
|
@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.