This tutorial demonstrates the "Negatable" property of Entities.
This tutorial requires that the general tutorial Bot is running
npm run tutorial-general
The "Negatable" property of an Entity enables you to label Both normal (positive) and negative instances of the Entity, teach based on positive and negative models and clear the value of an existing Entity. Entities with their "Negatable" property set are called Negatable Entities in Conversation Leaner.
Start on the home page in the Web UI.
- Select New Model.
- Enter NegatableEntity for Name.
- Select Create.
- Select Entities in the left panel, then New Entity.
- Select Custom Trained for Entity Type.
- Enter name for Entity Name.
- Check Negatable to enable users to provide an entity value, or say something is not an entity value thereby deleting the matching entity value.
- Select Create.
- Select Actions in the left panel, then New Action.
- Enter I don't know your name. for Bot's Response....
- Enter name for Disqualifying Entitles.
- Select Create.
- Select Actions in the left panel, then New Action.
- Enter I know your name. It is $name. for Bot's Response....
- Select Create.
Note
The name Entity was automatically added as a Required Entities by reference in the response utterance.
Now you have two actions.
- Select Train Dialogs in the left panel, then New Train Dialog.
- Enter hello for the user's utterance in the left chat panel.
- Select Score Actions.
- Select I don't know your name. from the Actions list. The percentile is 100% as the only valid Action based on the constraints.
- Enter My name is Frank for the user's utterance in the left chat panel.
- Highlight Frank then select +name. Negatable Entities have two instances: (+) plus adds or overwrites the value; (-) minus removes the value.
- Select Score Actions. The name Entity now is defined as Frank in the Model's memory, so the I know your name. It is $name Action is available.
- Select I know your name. It is $name. from the Actions list.
- Enter My name is not Frank. for the user's utterance in the left chat panel.
- Highlight Frank then select -name to clear the value from the name Entity.
- Select Score Actions.
- Select I don't know your name. from the Actions list.
- Enter My name is Susan. for the user's third utterance in the left chat panel.
- Highlight Susan then +name
[!div class="nextstepaction"] Multi-value entities