Reputation: 97
I have created a user-defined/custom entity as synonyms with below items, but dialogflow having an issue to identify the entity with similar names but only a character different at last.
'STM32L151V8H6'
'STM32L151V8H6A'
'STM32L151V8T6'
'STM32L151V8T6A'
'STM32L151VBH6'
'STM32L151VBH6A'
'STM32L151VBT6'
'STM32L151VBT6A'
So it is extracted STM32L151VBT6A in place of STM32L151VBT6.
Please advise on how to solve this issue.
Upvotes: 0
Views: 285
Reputation: 1577
You can enable Fuzzy Matching: Check docs for more info
Or you can use Regexp entities: check docs for more info
Some entities need to match patterns rather than specific terms. For example, national identification numbers, IDs, license plates, and so on. With regexp entities, you can provide regular expressions for matching.
UPDATE
In reply to your comment, you can get the original (what the user actually said) entity detected using $EntityName.original (check below example image)
But for your use case i advise against doing that using synonyms, if there is a common pattern you should definitely use RegEx
Upvotes: 1