This chatbot is a wrapper around Chatterbot python library. In this chatbot, everything works in commandline so this chatbot is best work with other program in different languages. ChatterBot is a machine-learning based conversational dialog engine build in Python which makes it possible to generate responses based on collections of known conversations. The language independent design of ChatterBot allows it to be trained to speak any language.
All required dependencies are listed in requirements.txt.
If you are using pip, then use
pip install -r requirements.txt
Run this command to get quick response
python main.py reply_instant "Hello"
Here reply_instant is command and "Hello" is the message
- Install the required dependencies
- Create a json array with required ID inside convos folder (For Example: convos/1.json)
- Enter message inside 1.json like
["hello"]
- run
python main.py reply 1
- You can get the response inside 1_reply.json
"hello there!"
python main.py command ID/message
-
reply
python main.py reply 1
Here 1 is the id of the file. -
reply_respond
python main.py reply_respond "Hello"
Here "Hello" is the messsage. -
train
python main.py train
Here json array from convos/train.json file is taken as the training data. -
end
python main.py end 1
Here 1 is the id of the file.
This program is licensed under the BSD 3-clause license