-
public interface ModelCoreThe main entry point to manage NLP models.
-
-
Method Summary
Modifier and Type Method Description abstract UnitwarmupModels(BuildContext context)Load all models in memory. abstract UnitupdateIntentModel(BuildContext context, List<SampleExpression> expressions)Update intent model. abstract UnitupdateEntityModelForIntent(BuildContext context, Intent intent, List<SampleExpression> expressions)Update entity model. abstract UnitupdateEntityModelForEntityType(BuildContext context, EntityType entityType, List<SampleExpression> expressions)Update entity type model. abstract UnitdeleteOrphans(Map<Application, Set<Intent>> applicationsAndIntents, List<EntityType> entityTypes)Remove models that does not match specified applications or intents. abstract TestModelReporttestModel(TestContext context, List<SampleExpression> expressions)Test a model and returns a report. abstract NlpApplicationConfigurationgetCurrentModelConfiguration(String applicationName, NlpEngineType nlpEngineType)Returns the current model configuration. abstract UnitupdateModelConfiguration(String applicationName, NlpEngineType engineType, NlpApplicationConfiguration configuration)Updates the model configuration for the given application name. -
-
Method Detail
-
warmupModels
abstract Unit warmupModels(BuildContext context)
Load all models in memory.
-
updateIntentModel
abstract Unit updateIntentModel(BuildContext context, List<SampleExpression> expressions)
Update intent model.
-
updateEntityModelForIntent
abstract Unit updateEntityModelForIntent(BuildContext context, Intent intent, List<SampleExpression> expressions)
Update entity model.
-
updateEntityModelForEntityType
abstract Unit updateEntityModelForEntityType(BuildContext context, EntityType entityType, List<SampleExpression> expressions)
Update entity type model.
-
deleteOrphans
abstract Unit deleteOrphans(Map<Application, Set<Intent>> applicationsAndIntents, List<EntityType> entityTypes)
Remove models that does not match specified applications or intents.
-
testModel
abstract TestModelReport testModel(TestContext context, List<SampleExpression> expressions)
Test a model and returns a report.
-
getCurrentModelConfiguration
abstract NlpApplicationConfiguration getCurrentModelConfiguration(String applicationName, NlpEngineType nlpEngineType)
Returns the current model configuration.
-
updateModelConfiguration
abstract Unit updateModelConfiguration(String applicationName, NlpEngineType engineType, NlpApplicationConfiguration configuration)
Updates the model configuration for the given application name.
-
-
-
-