LuisRecognizer and "none" intent: why are entities removed?
At the moment, if the LuisRecognizer finds a "none" intent, the data from Luis seems to get completely deleted by the framework.
On the bot side, in onDefault, we only get:
{"score":0,"intent":null}
instead of:
{ "score": 0, "intent": null, "intents": [ { "intent": "None", "score": 0.928112447 }, { "intent": "findCar", "score": 0.005508761 }, ], "entities": [ { "entity": "from Audi", "type": "brand", "startIndex": 4, "endIndex": 12, "score": 0.977639735 } ] }
Is there a reason why this is like this? Should the onus of ignoring the additional data be on the bot's side?
For instance in our case we do need these entities even if no intent was found. We use them to trigger further questions to the user.
It looks like the entities are copied independently of intent:
https://github.com/Microsoft/BotBuilder/blob/master/Node/core/src/dialogs/LuisRecognizer.ts#L64
@Stevenic ?
@willportnoy I think they get removed "later" in the code, in IntentDialog itself.
This should be resolved in the latest version of the SDK. Let me know if it's still happening and I'l lre-open the issue.
I also have the same issue as @thingista. I need to extract the entities and ask further questions even if there is no intent found. Please let me know how to acheive this using node.js
You should be able to listen for "None" now.