-
public interface EntityTypeProviderImplement this interface to support new entity types. The implementation is loaded at runtime, using the java java.util.ServiceLoader
you need to provide a META-INF/services/ai.tock.nlp.core.service.entity.EntityTypeProvider file.
-
-
Method Summary
Modifier and Type Method Description Set<String>supportedEntityTypes()Returns supported entity types - ie if the list of supported entity types if it is already known. BooleansupportClassification(String namespace, String entityTypeName)Does the given EntityType can be classified? BooleansupportEvaluation(String namespace, String entityTypeName)Does the given EntityType can be evaluated? BooleansupportValuesMerge(String namespace, String entityTypeName)Does the given EntityType supports values merge? EntityTypeClassifiergetEntityTypeClassifier()Returns the entity classifier - null by default. EntityTypeEvaluatorgetEntityTypeEvaluator()Returns the entity evaluator - null by default. Booleanhealthcheck()Test the server is up. -
-
Method Detail
-
supportedEntityTypes
Set<String> supportedEntityTypes()
Returns supported entity types - ie if the list of supported entity types if it is already known.
-
supportClassification
Boolean supportClassification(String namespace, String entityTypeName)
Does the given EntityType can be classified?
-
supportEvaluation
Boolean supportEvaluation(String namespace, String entityTypeName)
Does the given EntityType can be evaluated?
-
supportValuesMerge
Boolean supportValuesMerge(String namespace, String entityTypeName)
Does the given EntityType supports values merge?
-
getEntityTypeClassifier
EntityTypeClassifier getEntityTypeClassifier()
Returns the entity classifier - null by default.
-
getEntityTypeEvaluator
EntityTypeEvaluator getEntityTypeEvaluator()
Returns the entity evaluator - null by default.
-
healthcheck
Boolean healthcheck()
Test the server is up.
-
-
-
-