Doesnt recognize composite entities, problem understanding May I have... is not the month of May
I have a model called Order: App ID 5aa646f9-cb79-47e1-b709-8c6a4853817b
I defined an entity menuItem: pizza, hamburger, fish and chips.... and a composite entity menuItemOrder which is quantity + menuItem, ex, 3 pizzas.
And I defined an intent Order which is to place and order ex, I want 2 pizzas.
I trained the model a bit and it doesnt seem to be able to understand the exact same sentences I have already given it. Please look at attached images:
-
when I write "May I have 2 hamburgers please" it always thinks the May is the month May, no matter hw many times I correct it
-
it often doesnt recognize the composite entity of number + item, it extracts the number separately, and identifies only the item in the composite entity (and strangely assigns a number from other examples)
Appreciate your help

I think the issue with "May I have a pizza...." recognizing it as a date, is simply a bug.
An interesting discussion is how to build a model that handles "I want 3 pizzas" as well as "I want a pizza".
option1: define a menuItem entity to be the foods (pizza, milkshake...) and a composite entity menuItemOrder which is quantity + menuItem (3 pizzas) OR just menu item (a pizza). The intent of making an order always gets a menuItemOrder, which may or may not have quantity.
Option 2: define a menuItem entity to be the foods (pizza, milkshake...) and a composite entity menuItemOrder which is ONLY quantity + menuItem (3 pizzas). So the intent of making an order can get either a menuItemOrder or a menuItem
If we go with option 1 we would expect for a sentence like "Give me a pizza" to get back the composite entity: menuItemOrder {menuItem = pizza, quantity empty}. If we go with option 2 we would expect for this sentence to get back menuItem = pizza.
What is strange is that if we define the model according to option1, it doesnt work. It gets confused, and if we define the model according to option2, it returns results as would be expected in option 1.
Re "May I have a pizza...": wit/datetime is powered by Duckling. Duckling's philosophy is to optimize for recall, so if there's anything that could be a datetime, it will parse and resolve it as such. In this case, May should return a grain of month, which you can use to filter out datetimes not useful in your app. Usually, one would ignore datetimes based on a trait entity, which would understand the sentence context.
Option 1 seems legitimate to me. We'll need to dig to see what is wrong here.
Can you try setting the search strategy for menuItemOrder to free-text only?
I see multiple keyword values (5 hamburgers, 6 hamburgers, ...). This might confuse the models. For example, I want 6 hamburgers works, but not I want 10 hamburgers (matching hamburgers to 6 hamburgers, leaving 10 outside).
"May I have..." is now fixed!