I have trained the bot with no punctuation in intent like.
## intent: ask_holiday_in_a_year
How many holidays do we have in a year?
If i ask below question to bot
How many holidays do we have in a year? - ( NLU is able to recognize it correctly).
How, many ()? Holidays!!,do!@#we have$%^ in a %^& year. - (NLU is able to recognize it correctly.)
How many ###################### holidays do we have in a year? .(NLU is not able to recognize it correctly.)
How many ####### holidays %%^&*$$% do we have in a year? .(NLU is not able to recognize it correctly.)
For cases 1 and 2, it worked but for case 3 and 4, it didn’t work?
Is there any way(adding some settings in the pipeline)i can handle these symbols and punctuation and give the expected result?
You could delete the symbols at the beginning of the pipeline with a custom nlu component.
In the third parameter of the maketrans function, add the symbols you want to delete.