When we are doing entity recognition to fill slots, sometimes the name of entities can be predefined. In this case, a dictionary can facilitate entity recognition.
Here we add a dictionary to the slot
State Name. The dictionary of US states can be described as follows:
Alabama Alaska Arizona Arkansas California Colorado Connecticut Delaware Florida Georgia ...
Upload button behind the
State Name, and upload the dictionary.
After uploading successfully, you can click
detail to check which dictionary has been uploaded successfully, or you can
download to check the dictionary.
Suppose we create a dialog flow diagram ‘‘where are you from?’’.
Add user utterance nodes as follows:
Note: In order to improve the recognition accuracy of a dictionary, at least two examples need to be marked here.
When the state name is mentioned by the user and extracted successfully, the bot can reply as follows: