botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

Json response for the intent in Luis is coming wrong, although it is set as intended by me in the Luis application.

Open PrasadGautham opened this issue 9 years ago • 3 comments

I will illustrate with this example:

This is how the intent is set in the luis application. The application is trained and then updated and published: intent set in app

But the Json response is as follows:

jsonresponse

This occurs very rarely. But can't this issue be resolved??

PrasadGautham avatar Feb 09 '17 06:02 PrasadGautham

This is a misunderstanding of the results. The score in the JSON is the published model score of this utterance. The score in the dropdown is either the label; which is 1 if you have labeled this before. Or if this is a new utterance its the trained model score.

What you need todo is

  1. train the application and publish to push the trained model to be the published one.
  2. if this doesn't solve the issue, that means the underlying ML is confused about this utterance so a. you need to add more examples to enforce this concept b. you need to add more features to help the ML model to learn this, by using phraselist or regex features

yshahin avatar Feb 09 '17 07:02 yshahin

But I selected it to be shown as "none" intent here. So the best intent should be "none" right?, regardless of the score

PrasadGautham avatar Feb 09 '17 07:02 PrasadGautham

I have a similar issue too, not as regards the intent but an entity, LUIS labels the entity in the statement in the dashboard for the app, and when I try the same statement with the publish URL, sometimes it picks it up, most times, it just doesn't which is annoying sometimes. This happens only if the particular phrase is present in the statement.

bondz avatar Feb 09 '17 16:02 bondz