# How to effectively train the chatbot?
Suppose a city wants to create a chatbot. The latter must answer recurring questions such as:
- Take the bus?
- How to contact you?
Note the intention is different: one is to search for a bus, the other is to contact the city. However, training can be distorted by bad sentences
# Clear sentences
Follow these recommendations for effective learning:
- Delete unnecessary context.
Example: Do not train the phrase:
I have to take the bus, how to reach you?. Here, this sentence will bring confusion between the two intentions. Only train
how to reach you? with
- No need to train the same sentence with several different spellings
Example: Do not train the
How to take the bsu? sentence. The typo on the word
bus will be spotted by the chatbot.
- Do not train the same sentence multiple times
Example: Do not train the phrase
How to take the bus? if it already in the intention. By doing this, the chatbot thinks this type of sentence is important. Thus, if the user says
Take contact, the bad intention will be triggered because the term
take is no longer present in the wrong intention
This also applies in sentences of the same form with entities:
How to take the bus tomorrow? and
How to take the bus next month? are the same phrases for chatbot. Actually
next month are entities of type
DATE. This amounts to driving the same sentence several times.