问题
I have an intent "BookTicket". I have few utterances for the same: "book a ticket", "book my ticket".....it works fine.
It also works with "do not book a ticket", "book my show". My question is: How can I eliminate these negative searches to search for the intent mentioned above and return an error message instead of invoking the intent.
Right now, I am trying this with LUIS framework.
thanks
回答1:
In case of LUIS, use the None intent to mark the negative examples you want to eliminate, this way your model will learn to associate these negative utterances with None intent not "BookTicket"
回答2:
My be you can try this https://azure.microsoft.com/en-in/documentation/articles/machine-learning-apps-text-analytics/ . Set the threshold as required to your project so that only positive will come out.
来源:https://stackoverflow.com/questions/38497933/how-to-eliminate-negative-utterances-while-using-luis-wit-intent