Notifications

18 views

Description

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.

Uterrance Training                          Chat training

 

Release or Environment

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



Regex synonym

 

Article Information

Last Updated:2020-03-12 10:27:56
Published:2020-03-12