Is there an opportunity to get the JSON in always the same sequence for the same sentence, just in a different way?
As an example:
Sentence A:
“fahre rollade mia garten hoch”
gives the JSON as follows:
{
"entities": [
{
"end": 9,
"entity": "room_name",
"raw_end": 9,
"raw_start": 6,
"raw_value": "mia",
"start": 6,
"value": "mia"
},
{
"end": 16,
"entity": "location_name",
"raw_end": 16,
"raw_start": 10,
"raw_value": "garten",
"start": 10,
"value": "garten"
Sentence B (same meaning, different sequence):
“fahre rollade garten mia hoch”
gives the JSON as follows:
{
"entities": [
{
"end": 12,
"entity": "location_name",
"raw_end": 12,
"raw_start": 6,
"raw_value": "garten",
"start": 6,
"value": "garten"
},
{
"end": 16,
"entity": "room_name",
"raw_end": 16,
"raw_start": 13,
"raw_value": "mia",
"start": 13,
"value": "mia"
Right now I tried it with following form of sentence:
[moveshutter]
[fahre| mache | setze] ($room_name){room_name} ($location_name){location_name} (hoch | runter){updown_name}
[fahre| mache | setze] ($location_name){location_name} ($room_name){room_name} (hoch | runter){updown_name}
I ask this question because I like to proceed with the JSON through MQTT and it would be easier to get it in the same sequence.
Thanks and greetings,
Thomas