简体   繁体   中英

IBM Watson Assistant: What should be done if one entity value exist in multiple entities

Let's imagine we are opening a restaurant. We use a chatbot to handle customer ordering and customer complaint.

Intent: #order #complain

Entity: @food: burger, noodle, chicken @compliantItem: service, burger, chicken, noodle

In this case, when a customer says "I want to order burger", Watson Assistant recognizes #order as intent (which is ok) and burger in both @food and @compliantItem category.

Is there a way to avoid it? Or should the entity values be reorganized?

If you have items as part of several entities, then Watson Assistant has to (correctly) match them to all of those entities. You don't necessarily have to reorganize them, but to plan your dialog.

You should have dialog nodes reacting to either order or complaint. Then you could use slots to look for the required context. You need food for order and complaintItem for complaints. In each dialog, you probably want to check what exactly was entered.

Once the subnode with either intent or complaint has been processed, you return to the main level of your dialog tree.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM