-
Notifications
You must be signed in to change notification settings - Fork 55
Description
Hi all,
Thanks to this great library :-)
I would like to use several slots within a same sentence but the produced json file does not pick up the right start and end of the slots.
Below a simple example:
******** txt_file ***********
%&ask_toilet
where the @[toilet#singular] is @[please]?
@[toilet#singular]
toilet
loo
@[please]
please
plz
***** json result ***********
{
"rasa_nlu_data": {
"common_examples": [
{
"entities": [
{
"end": 13,
"entity": "toilet",
"start": 10,
"value": "loo"
},
{
"end": 42,
"entity": "please",
"start": 36,
"value": "please"
}
],
"intent": "ask_toilet",
"text": "Where the loo is please?"
},
{
"entities": [
{
"end": 13,
"entity": "toilet",
"start": 10,
"value": "loo"
},
{
"end": 39,
"entity": "please",
"start": 36,
"value": "plz"
}
],
"intent": "ask_toilet",
"text": "where the loo is plz?"
},
{
"entities": [
{
"end": 16,
"entity": "toilet",
"start": 10,
"value": "toilet"
},
{
"end": 39,
"entity": "please",
"start": 36,
"value": "plz"
}
],
"intent": "ask_toilet",
"text": "where the toilet is plz?"
}
],
"entity_synonyms": [],
"lookup_tables": [],
"regex_features": []
}
}
Any idea please ???