I have an application built using the latest version of Rasa Open Source which can take user inputs like:
- I want 3 bananas, an apple and 4 oranges
- I want 3 bananas, a large apple and 4 medium size oranges
I am identifying bananas, apples and oranges under a [fruit] entity, the quantity 3,4,1(default) under a [qty] entity and size medium, large, regular(default) under [size] entity. Thus my nlu file reads like this
- I want [3](qty) [bananas](fruit), an [apple](fruit) and [4](qty) [oranges](entity)
- I want [3](qty) [bananas](fruit), a [large](size) [apple](fruit) and [4](qty) [medium](size) size [oranges](fruit)
The NLU fails to recognize the appropriate quantity and size corresponding to the respective entities. For e.g. in the first case it assigns the quantity 4 to apple instead of oranges and orange is assigned the default value 1. Similarly in the second case, the size large gets applied to bananas and the medium size to apple and regular(default) size to oranges.
How do you have the appropriate descriptive entities like size, quantity etc. applied correctly to the respective main entity (in this case, fruit) when the user has a choice to either provide or not provide the descriptive entities?