@JesseMalnik/

chat bot attempt 2

Python

No description

fork
loading
Files
  • main.py
  • chatterbot
  • docs
  • examples
  • graphics
  • tests
  • tests_django
  • .codeclimate.yml
  • .gitignore
  • .travis.yml
  • dev-requirements.txt
  • LICENSE
  • MANIFEST.in
  • README.md
  • requirements.txt
  • runtests.py
  • setup.cfg
  • setup.py
  • tox.ini
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
from chatterbot import ChatBot
from chatterbot.trainers import ChatterBotCorpusTrainer

chatbot = ChatBot('Ron Obvious')

# Create a new trainer for the chatbot
trainer = ChatterBotCorpusTrainer(chatbot)

# Train the chatbot based on the english corpus
trainer.train("chatterbot.corpus.english")

# Get a response to an input statement
chatbot.get_response("Hello, how are you today?")