BotFramework-Composer icon indicating copy to clipboard operation
BotFramework-Composer copied to clipboard

Sentiment analysis

Open JohnRobertGreen opened this issue 5 years ago • 6 comments

How do I configure sentiment analysis for LUIS from settings in Composer?

I have enabled sentiment analysis when publishing from LUIS and I can see sentiment being returned when testing from the emulator. When I publish and use webchat there is no sentiment returned from LUIS. Both published bot and emulator should be using the same prediction endpoint.

JohnRobertGreen avatar Mar 03 '21 06:03 JohnRobertGreen

I'm looking into if and how this can be done. I will post an update as soon as I know more.

stevkan avatar Mar 03 '21 18:03 stevkan

Can you tell me, when you created your publishing profile in Composer, did you select "Create new Azure resources" or "Import existing Azure resources"? I suspect you selected the first option. If so, then I believe the issue is tied to the published LUIS service. Prior to publishing, you needed to supply your LUIS authoring key in order for you to be able to test your bot in Composer. However, during the publishing process, new LUIS authoring and endpoint keys are generated for use, exclusively, by the bot. The authoring key you supplied in Composer is discarded and replaced.

I'm guessing that, like you, I went to the LUIS.ai site and found the LUIS app that was created when testing. I made changes there and ran into the same issue you did. Once I noticed the new LUIS service(s) in the bot's resource group, I returned to LUIS.ai, clicked on my profile in the top right, and clicked the "Change authoring resource" link. The drop down revealed the new service. Changing to the new service displayed the correct LUIS app actually being used. I re-published the app selecting to use sentiment analysis and when I did, in Emulator for the published bot, I saw the below.

image

Did this help?

stevkan avatar Mar 04 '21 22:03 stevkan

I suspect you are correct. I changed the "composer" LUIS app to use sentiment analysis, but I did not change the "publish" LUIS app. I was heading down this path of investigation but have been stymied because I can no longer published at all. Once I get that resolved I'll return to this issue and confirm. Thanks.

JohnRobertGreen avatar Mar 04 '21 23:03 JohnRobertGreen

Hi @JohnRobertGreen : Curious if you have any updates here? Thanks!

daveta avatar Mar 15 '21 17:03 daveta

Hi @JohnRobertGreen : Closing due to inactivity, please reactivate if necessary..

daveta avatar Mar 16 '21 18:03 daveta

@stevkan - we are facing this issue, any suggestion?

we are using existing LUIS resource and using the preview composer pipelines to deploy. we are not getting the sentiment score even after changing the settings in luis portal.

VidhyaSanjeevi avatar Aug 31 '21 19:08 VidhyaSanjeevi