Issue
Assume we are training the NLU Model and we want to use a word starting with a capital letter. In this case, Payslip or Payslips.
As the images show, this will not be recognized. Note that payslips in lowercase works fine.
|
Release
New York +
Cause
This issue with Payslip and payslip has to do with how Vocabulary is added to the model. These are unknown words and that is why the error is being thrown.
Resolution
A way to handle these errors is to have a pattern vocabulary with case insensitive regex when adding a synonym.
The expression for case insensitive is "(?i)". For the given example, this would become (?i)payslip