Configuring Rasa to use entity roles and groups
The use of entity roles and entity groups requires the involvement of the settings in the domain, story, form, and NLU pipeline. First, let's take a look at how to set them up in the domain.
Updating the entities setting for roles and groups
For an entity that uses the entity role and groups feature, you need to list the roles and groups information in the entities
of the domain
file. Here is an example:
entities: - time - ticket_type - city: roles: - departure - destination - size: groups: - 1 - 2
In this example, the city
entity has two roles: departure
and destination
. Additionally, the size
entity has two groups: 1
and 2
.
Next, we discuss how...