Package ai.tock.nlp.model.service
Object NlpClassifierService
-
- All Implemented Interfaces:
-
ai.tock.nlp.model.ModelBuilder,ai.tock.nlp.model.NlpClassifier
public class NlpClassifierService implements NlpClassifier
-
-
Field Summary
Fields Modifier and Type Field Description public final static NlpClassifierServiceINSTANCE
-
Method Summary
Modifier and Type Method Description Set<NlpEngineType>supportedNlpEngineTypes()IntentClassificationclassifyIntent(IntentContext context, String text)IntentClassificationclassifyIntent(IntentContext context, ModelHolder modelHolder, String text)List<EntityRecognition>classifyEntities(EntityCallContext context, String text)List<EntityRecognition>classifyEntities(EntityCallContext context, ModelHolder modelHolder, String text)UnitbuildAndSaveTokenizerModel(TokenizerContext context, List<SampleExpression> expressions)ModelHolderbuildIntentModel(IntentContext context, List<SampleExpression> expressions)UnitbuildAndSaveIntentModel(IntentContext context, List<SampleExpression> expressions)ModelHolderbuildEntityModel(EntityBuildContext context, List<SampleExpression> expressions)UnitbuildAndSaveEntityModel(EntityBuildContext context, List<SampleExpression> expressions)BooleanisIntentModelExist(IntentContext context)BooleanisEntityModelExist(EntityBuildContext context)UnitdeleteOrphans(Map<Application, Set<Intent>> applicationsAndIntents, List<EntityType> entityTypes)UnitwarmupIntentModel(IntentContext context)UnitwarmupEntityModel(EntityCallContext context)NlpApplicationConfigurationgetCurrentModelConfiguration(String applicationName, NlpEngineType nlpEngineType)UnitupdateModelConfiguration(String applicationName, NlpEngineType engineType, NlpApplicationConfiguration configuration)-
-
Method Detail
-
supportedNlpEngineTypes
Set<NlpEngineType> supportedNlpEngineTypes()
-
classifyIntent
IntentClassification classifyIntent(IntentContext context, String text)
-
classifyIntent
IntentClassification classifyIntent(IntentContext context, ModelHolder modelHolder, String text)
-
classifyEntities
List<EntityRecognition> classifyEntities(EntityCallContext context, String text)
-
classifyEntities
List<EntityRecognition> classifyEntities(EntityCallContext context, ModelHolder modelHolder, String text)
-
buildAndSaveTokenizerModel
Unit buildAndSaveTokenizerModel(TokenizerContext context, List<SampleExpression> expressions)
-
buildIntentModel
ModelHolder buildIntentModel(IntentContext context, List<SampleExpression> expressions)
-
buildAndSaveIntentModel
Unit buildAndSaveIntentModel(IntentContext context, List<SampleExpression> expressions)
-
buildEntityModel
ModelHolder buildEntityModel(EntityBuildContext context, List<SampleExpression> expressions)
-
buildAndSaveEntityModel
Unit buildAndSaveEntityModel(EntityBuildContext context, List<SampleExpression> expressions)
-
isIntentModelExist
Boolean isIntentModelExist(IntentContext context)
-
isEntityModelExist
Boolean isEntityModelExist(EntityBuildContext context)
-
deleteOrphans
Unit deleteOrphans(Map<Application, Set<Intent>> applicationsAndIntents, List<EntityType> entityTypes)
-
warmupIntentModel
Unit warmupIntentModel(IntentContext context)
-
warmupEntityModel
Unit warmupEntityModel(EntityCallContext context)
-
getCurrentModelConfiguration
NlpApplicationConfiguration getCurrentModelConfiguration(String applicationName, NlpEngineType nlpEngineType)
-
updateModelConfiguration
Unit updateModelConfiguration(String applicationName, NlpEngineType engineType, NlpApplicationConfiguration configuration)
-
-
-
-