Package ai.tock.nlp.front.shared.config
Class IntentDefinition
-
- All Implemented Interfaces:
public final class IntentDefinitionDefinition of an intent.
-
-
Field Summary
Fields Modifier and Type Field Description private final transient StringqualifiedNameprivate final Stringnameprivate final Stringnamespaceprivate final Set<Id<ApplicationDefinition>>applicationsprivate final Set<EntityDefinition>entitiesprivate final Map<Locale, LinkedHashSet<EntitiesRegexp>>entitiesRegexpprivate final Set<String>mandatoryStatesprivate final Set<Id<IntentDefinition>>sharedIntentsprivate final Stringlabelprivate final Stringdescriptionprivate final Stringcategoryprivate final Id<IntentDefinition>_id
-
Constructor Summary
Constructors Constructor Description IntentDefinition(String name, String namespace, Set<Id<ApplicationDefinition>> applications, Set<EntityDefinition> entities, Map<Locale, LinkedHashSet<EntitiesRegexp>> entitiesRegexp, Set<String> mandatoryStates, Set<Id<IntentDefinition>> sharedIntents, String label, String description, String category, Id<IntentDefinition> _id)
-
Method Summary
Modifier and Type Method Description final StringgetQualifiedName()Qualified name (ie "namespace:name") of the intent. final StringgetName()The name of the intent. final StringgetNamespace()The namespace of the intent. final Set<Id<ApplicationDefinition>>getApplications()The applications using this intent. final Set<EntityDefinition>getEntities()The EntityDefinitions of this intent. final Map<Locale, LinkedHashSet<EntitiesRegexp>>getEntitiesRegexp()final Set<String>getMandatoryStates()This intent is returned as a classification result only if at least one of the mandatory states is requested. final Set<Id<IntentDefinition>>getSharedIntents()The qualified sentences of each "shared intent" that contains only entities supported by the current intent are used to build the entity model of this intent. final StringgetLabel()The optional displayed label of the intent. final StringgetDescription()The optional description of the intent. final StringgetCategory()The optional category of the intent. final Id<IntentDefinition>get_id()The unique Id of the intent. final EntityDefinitionfindEntity(String type, String role)final EntityDefinitionfindEntity(String role)final EntityDefinitionfindEntity(Entity entity)final BooleanhasEntity(Entity entity)final BooleanhasEntity(ClassifiedEntity entity)final BooleansupportStates(Set<String> states)-
-
Constructor Detail
-
IntentDefinition
IntentDefinition(String name, String namespace, Set<Id<ApplicationDefinition>> applications, Set<EntityDefinition> entities, Map<Locale, LinkedHashSet<EntitiesRegexp>> entitiesRegexp, Set<String> mandatoryStates, Set<Id<IntentDefinition>> sharedIntents, String label, String description, String category, Id<IntentDefinition> _id)
-
-
Method Detail
-
getQualifiedName
final String getQualifiedName()
Qualified name (ie "namespace:name") of the intent.
-
getNamespace
final String getNamespace()
The namespace of the intent.
-
getApplications
final Set<Id<ApplicationDefinition>> getApplications()
The applications using this intent.
-
getEntities
final Set<EntityDefinition> getEntities()
The EntityDefinitions of this intent.
-
getEntitiesRegexp
final Map<Locale, LinkedHashSet<EntitiesRegexp>> getEntitiesRegexp()
-
getMandatoryStates
final Set<String> getMandatoryStates()
This intent is returned as a classification result only if at least one of the mandatory states is requested. There is no restriction for intents with empty mandatory states set.
-
getSharedIntents
final Set<Id<IntentDefinition>> getSharedIntents()
The qualified sentences of each "shared intent" that contains only entities supported by the current intent are used to build the entity model of this intent.
-
getDescription
final String getDescription()
The optional description of the intent.
-
getCategory
final String getCategory()
The optional category of the intent.
-
get_id
final Id<IntentDefinition> get_id()
The unique Id of the intent.
-
findEntity
final EntityDefinition findEntity(String type, String role)
-
findEntity
final EntityDefinition findEntity(String role)
-
findEntity
final EntityDefinition findEntity(Entity entity)
-
hasEntity
final Boolean hasEntity(ClassifiedEntity entity)
-
supportStates
final Boolean supportStates(Set<String> states)
-
-
-
-