botpress / v12

Botpress OSS – v12
https://v12.botpress.com
GNU Affero General Public License v3.0
68 stars 84 forks source link

Slot Filling not working - All duckling hyphened types - phoneNumber vs phone-number #1724

Open hernanbari opened 1 year ago

hernanbari commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

Associated Entity of Slot == system.phoneNumber (as defined here) NLU entity answer == phone-number (and type: "system.phone-number)

To Reproduce Steps to reproduce the behavior:

  1. Create a slot of associated entity system.phoneNumber or system.amountOfMoney
    1. Create a slot filling node with such slot.
    2. Check logs of action, name mismatch

Expected behavior

Make system entity name match duckling name. Rename duckling phone-number to phoneNumber.

Screenshots If applicable, add screenshots to help explain your problem.

image image image

PS: It's my mistake for trusting Duckling, how crazy can you be to name variables with hyphen ? I blame zuck