Extract number type entity from more than one entity with same example

Hi everyone. I am working on a rasa project whose version is 3.3.1.

So here I am using a form to collect user data. In the form there are two slots named mobile and age. Now the issue is when the form loop is activated and I try to set the age slot value it takes the value for mobile slot.

this my nlu data for extracting age and mobile

- intent: tell_age
  examples: |
    - [92](age).
    - [44](age).
    - [76](age).
    - [51](age).
    - [66](age).
    - [38](age).
    - [52](age).

- intent: tell_mobile
  examples: |
    - [62639147558](mobile)
    - [34457356483](mobile)
    - [23649642099](mobile)
    - [26599361032](mobile)
    - [65062175603](mobile)
    - [31883510343](mobile)

These are the slot and entity

entities:
- mobile
- age

slots:
  mobile:
    type: text
    mappings:
    - type: from_entity
      entity: mobile
  age:
    type: text
    mappings:
    - type: from_entity
      entity: age

How can I solve this issue?

Hi @chowdhuryshakur, you can use Regular Expressions.

2 Likes

@rasa_learner Thanks for your reply. Let me try RegEx.