Question: I have used regex pattern in this nlu.yml file for recognising any name which user types but this is not recognising can u please provide

I have used regex pattern in this nlu.yml file for recognising any name which user types but this is not recognising can u please provide solution for this problem
version: "3.1"
nlu:
- intent: ask_room_prices
examples: |
- What are the room prices?
- Can you show me the prices of rooms?
- How much does each room cost?
- Tell me the room rates
- intent: greet_with_name
examples: |
- My name is [John](person_name)
- I am [Alice](person_name)
- Call me [Bob](person_name)
- You can call me [Charlie](person_name)
- I'm [David](person_name)
- intent: greet
examples: |
- Hi
- intent: room_type
examples: |
- I need a [Single](room_type_name)
- I need a [Double](room_type_name)
- I need a [Suite](room_type_name)
- intent: checkin_date
examples: |
-[Single](room_type_name)
- I need a [Double](room_type_name)
- I need a [Suite](room_type_name)
- regex: person_name
examples: |
-^[A-Z][a-z]+(?: [A-Z][a-z]+)*$

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!