An open-source chat bot program written in Python.
Project description
This is a chat bot program that takes input and returns a response based on known conversations.
Installation
This package can be installed using
pip install chatterbot
Useage
Create a new chat bot
from chatterbot import ChatBot chatbot = ChatBot()
Specify a defult location for engram memory files
chatbot.log_directory="path/to/directory/"
Getting an engram based response
response = chatbot.engram("Good morning!") print(response)
Terminal mode (User and chat bot)
from chatterbot import Terminal terminal = Terminal() terminal.begin()
Have the chat bot talk with CleverBot
from chatterbot import TalkWithCleverbot talk = TalkWithCleverbot() talk.begin()
Requirements
To install required packages for this project run the command: (This is only required when not installing through pip)
sudo pip install -r requirements.txt
A general warning
This program is capable of retrieving conversation data from various social networks in order to provide more accurate replies to input text. Because of this, responces generated by the chat bot can contain insulting statements completely at random. I have plans to address this issue, however they are not yet implemented.
Notes
This program is not designed to be an open source version of CleverBot. Although this Chat Bot returns responces, the code here handles communication much differently then CleverBot does.
History
0.0.0 (2014-10-11)
First release on PyPI.
0.0.1 (2014-10-14)
Updated documentation.
0.0.2 (2014-10-15)
Changed package name to lowercase format.
Tests now create sample log files.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ChatterBot-0.0.2.tar.gz
.
File metadata
- Download URL: ChatterBot-0.0.2.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 984656bc81cde5b9f5ae33b60c2c223e8fd6c157816267213ff6a7150a95c00e |
|
MD5 | 4fc90d67a65509431937a6ab17a71330 |
|
BLAKE2b-256 | 56d1a87491d7345562e4e15df03c3cb3aaa01ef6d4ce1cd36f7bc3fbfe5995e3 |
File details
Details for the file ChatterBot-0.0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: ChatterBot-0.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf9e5c602d5c78a753e6445c103498552643f3729f7d166b4ed5def40bf9aeb6 |
|
MD5 | 0f89109f3716a1d532337de7efef3f6d |
|
BLAKE2b-256 | 6159702bf96373e955c68ed58f7fef2c1feea27b3f882756f40fe578006ed60f |