Describe the bug
When I define a slot with spaces (e.g, i want to book a flight to [new york]) the system correctly detects them but in {{event.nlu.slots.slotname.value}} I see them without spaces (newyork).
This issue has been addressed by iicky in the forum (https://help.botpress.io/t/no-spaces-in-nlu-extracted-slots/2602). User Estyms suggested to solve it with an ad hoc function parsing again the sentence to find the slot, but I don't this this is a very elegant solution. I believe this is a bug of the NLU module and should be solved internally.
To Reproduce
Steps to reproduce the behavior:
In NLU, define a new entity toCity with rome, new york, toronto, paris
Define a new intent Fights and add new sentences (including i want to flight to new york)
Create a new slot for this intent with type toCity
Tag all cities in the sentences with this slot
In the emulator type the sentence i want to flight to new york and look at the debugging info.
Expected behaviorevent.nlu.slots.toCity.value should be new york instead of newyork
Screenshots
Environment (please complete the following information):
Describe the bug When I define a slot with spaces (e.g, i want to book a flight to [new york]) the system correctly detects them but in
{{event.nlu.slots.slotname.value}}
I see them without spaces (newyork).This issue has been addressed by iicky in the forum (https://help.botpress.io/t/no-spaces-in-nlu-extracted-slots/2602). User Estyms suggested to solve it with an ad hoc function parsing again the sentence to find the slot, but I don't this this is a very elegant solution. I believe this is a bug of the NLU module and should be solved internally.
To Reproduce Steps to reproduce the behavior:
toCity
withrome, new york, toronto, paris
Fights
and add new sentences (includingi want to flight to new york
)toCity
i want to flight to new york
and look at the debugging info.Expected behavior
event.nlu.slots.toCity.value
should benew york
instead ofnewyork
Screenshots![image](https://user-images.githubusercontent.com/2836492/70307320-2d2e4200-1809-11ea-89f7-69f0a4275d29.png)
Environment (please complete the following information):