Package ai.tock.nlp.core
Class Intent
-
- All Implemented Interfaces:
public final class IntentAn intent is defined by an unique name.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classIntent.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static StringUNKNOWN_INTENT_NAMEpublic final static StringRAG_EXCLUDED_INTENT_NAMEprivate final Stringnameprivate final List<Entity>entitiesprivate final Map<Locale, LinkedHashSet<EntitiesRegexp>>entitiesRegexppublic final static Intent.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description Intent(String name, List<Entity> entities, Map<Locale, LinkedHashSet<EntitiesRegexp>> entitiesRegexp)
-
Method Summary
Modifier and Type Method Description final StringgetName()final List<Entity>getEntities()final Map<Locale, LinkedHashSet<EntitiesRegexp>>getEntitiesRegexp()final <Error class: unknown class>hasEntity(EntityType entityType, String role)final EntitygetEntity(String role)Booleanequals(Object other)IntegerhashCode()-
-
Constructor Detail
-
Intent
Intent(String name, List<Entity> entities, Map<Locale, LinkedHashSet<EntitiesRegexp>> entitiesRegexp)
-
-
Method Detail
-
getEntities
final List<Entity> getEntities()
-
getEntitiesRegexp
final Map<Locale, LinkedHashSet<EntitiesRegexp>> getEntitiesRegexp()
-
hasEntity
final <Error class: unknown class> hasEntity(EntityType entityType, String role)
-
-
-
-