public NlpCore
The main entry point for NLP.
| Modifier and Type | Method and Description |
|---|---|
java.util.List<ai.tock.nlp.core.EntityRecognition> |
evaluateEntities(CallContext context,
java.lang.String text,
java.util.List<ai.tock.nlp.core.EntityRecognition> entities)
Evaluate entity values.
|
java.util.Set<java.lang.String> |
getBuiltInEntityTypes()
Returns all built-in entities.
|
boolean |
healthcheck()
Check engines availability.
|
ValueDescriptor |
mergeValues(CallContext context,
Entity entity,
java.util.List<ai.tock.nlp.core.merge.ValueDescriptor> values)
Merge two or more values for the given
class Entity. |
ParsingResult |
parse(CallContext context,
java.lang.String text,
IntentSelector intentSelector)
Parse text with NLP engine.
|
boolean |
supportValuesMerge(EntityType entityType)
Does the given
class EntityType supports values merge? |
java.util.Set<ai.tock.nlp.core.NlpEngineType> |
supportedNlpEngineTypes()
Supported nlp engines.
|
@NotNull java.util.Set<java.lang.String> getBuiltInEntityTypes()
Returns all built-in entities.
@NotNull ParsingResult parse(@NotNull CallContext context, @NotNull java.lang.String text, @NotNull IntentSelector intentSelector)
Parse text with NLP engine.
@NotNull java.util.Set<ai.tock.nlp.core.NlpEngineType> supportedNlpEngineTypes()
Supported nlp engines.
@NotNull
java.util.List<ai.tock.nlp.core.EntityRecognition> evaluateEntities(@NotNull
CallContext context,
@NotNull
java.lang.String text,
@NotNull
java.util.List<ai.tock.nlp.core.EntityRecognition> entities)
Evaluate entity values.
context - the call contexttext - the queryentities - the not yet evaluated identified entitiesboolean supportValuesMerge(@NotNull
EntityType entityType)
Does the given class EntityType supports values merge?
class EntityType@Nullable ValueDescriptor mergeValues(@NotNull CallContext context, @NotNull Entity entity, @NotNull java.util.List<ai.tock.nlp.core.merge.ValueDescriptor> values)
Merge two or more values for the given class Entity.
class Entityboolean healthcheck()
Check engines availability.