wit icon indicating copy to clipboard operation
wit copied to clipboard

Wit/Quantity for people

Open thomasnivot opened this issue 10 years ago • 4 comments

Hi,

i'd like to find the right entity to make my bot understand that quantity: 50 employees

should i take wit/number only for the "50" or wit/quantity for "50 employees" ?

Quantity requires 2 customs entities to works (like liters & milk) despite this would it work ?

Thanks!

thomasnivot avatar Nov 16 '16 15:11 thomasnivot

Hello, you should use wit/number (wit/quantity is tricky and doesn't work well). Soon we will bring back composite entities that will allow you to do what wit/quantity was supposed to do

l5t avatar Nov 16 '16 15:11 l5t

Thank you for the tips :) guess numbers cannot understand what they refers to ... like i have to select only 50 and not "50 people" else wit wont understand ?

thomasnivot avatar Nov 16 '16 16:11 thomasnivot

Correct but if you have different numbers in your queries you can use Roles:https://wit.ai/docs/recipes#differentiate-several-entities-according-to-their-role-in-the-message

l5t avatar Nov 16 '16 16:11 l5t

Thanks!

In this exemple wit understand that the word "an" isn't a number but in french "an" refers to the same meaning as "one" and is written the same way (un appartement avec 1 salle de bain) could i disabble the function that wit understand numbers in letters as a wit/number ? or Should i go for myself with my own entity "number_people"

thomasnivot avatar Nov 16 '16 16:11 thomasnivot