How do synonyms work

Hi all,

in one of my intents I’m using synonyms.
I would have expected that those sysnonyms are translated into the original slot value.

E.g. I have a slot named location. One of those locations is kochstube (older german term for kitchen). However I would like to use the newer german term for kitchen which is Küche. So I used küche as synonym for kochstube.


I thought that küche should be automatically translated into kochstube by snips and that in the intent message on mqtt I should find kochstube.
However I’m getting the following.
{
“sessionId” : “7de58b43-e2e2-41ef-b6d6-20e50b88612b”,
“customData” : null,
“siteId” : “default”,
“input” : “schließe den rolladen in der küche”,
“asrTokens” : [ [ {
“value” : “schließe”,
“confidence” : 1.0,
“rangeStart” : 0,
“rangeEnd” : 8,
“time” : {
“start” : 0.0,
“end” : 0.96
}
}, {
“value” : “den”,
“confidence” : 1.0,
“rangeStart” : 9,
“rangeEnd” : 12,
“time” : {
“start” : 0.96,
“end” : 1.29
}
}, {
“value” : “rolladen”,
“confidence” : 0.8488721,
“rangeStart” : 13,
“rangeEnd” : 21,
“time” : {
“start” : 1.29,
“end” : 1.6706042
}
}, {
“value” : “in”,
“confidence” : 0.8405876,
“rangeStart” : 22,
“rangeEnd” : 24,
“time” : {
“start” : 1.6706042,
“end” : 1.8313057
}
}, {
“value” : “der”,
“confidence” : 0.8405876,
“rangeStart” : 25,
“rangeEnd” : 28,
“time” : {
“start” : 1.8313057,
“end” : 2.1
}
}, {
“value” : “küche”,
“confidence” : 1.0,
“rangeStart” : 29,
“rangeEnd” : 34,
“time” : {
“start” : 2.1,
“end” : 3.1499999
}
} ] ],
“asrConfidence” : 0.9183355,
“intent” : {
“intentName” : “thomasthefirst:closeCover”,
“confidenceScore” : 0.58377165
},
“slots” : [ {
“rawValue” : “küche”,
“value” : {
“kind” : “Custom”,
“value” : “Küche”
},
“range” : {
“start” : 29,
“end” : 34
},
“entity” : “location”,
“slotName” : “location”,
“confidenceScore” : 1.0
} ]
}

Any ideas what is wrong?

Seems there was an issue in my assistant.
I managed to get it working by creating a new type.
I exported all values and synonyms from the location type.
Created a new type called room.
Imported the exported values.
Redownloaded the assistant.

To be honest I’m not certain why that is now working but at least it solved my issue.