Closed Symon94 closed 2 months ago
hi @Symon94,
I'm not able to reproduce this issue.
In dotnet composer bot, I added multiple languages support such as Italian ("it") and German ("de"). In both of these languages the entities
were captured from CLU.
Here are the steps I took:
Added Multiple languages to Composer
Install ConversationLanguageUnderstanding V1.0.1 package in Composer and configure the main dialog for custom CLU recognizer.
In "Unknown intent" trigger, I added the following response:
In Emulator, change locale. From my end I tested with "it" and "de".
Send an utterance to the bot
Entities is captures in different language:
{
"lgType": "Activity",
"text": {
"text": "order pizza",
"alteredText": null,
"intents": {
"OrderPizza": {
"score": 0.9621253
}
},
"entities": {
"$instance": {},
"order": [
{
"category": "order",
"text": "order",
"offset": 0,
"length": 5,
"confidenceScore": 1
}
],
"pizza": [
{
"category": "pizza",
"text": "pizza",
"offset": 6,
"length": 5,
"confidenceScore": 1
}
]
},
"intent": "OrderPizza",
"score": 0.9621253
}
}
Closing due to inability to reproduce or confirm a bug.
Describe the bug
In Bot Framework Composer, after installing microsoft.bot.components.recognizers.clurecognizer V1.0.1 library for CLU, the bot doesn't recognize some entities if the language is different to en-US . So I search in the source code provided here and I think that I found a bug.
In the image above, I show where the bug is. I change that portion of code adding a field "language" = "it". After restarting the Bot Framework Composer, bot manages to capture entities correctly for the chosen language. I think it is possible to be able to retrieve the language using the DialogContext property Locale
Version
Release: 2.1.3-nightly.364675.1a93f21 SDK runtime packages: 4.12.0
To Reproduce
Expected behavior
I expect the captured entities to be in the entities field