From 945d7694f0607ce836b8fce19a279809d193b908 Mon Sep 17 00:00:00 2001 From: Gunther Cox Date: Tue, 27 Oct 2015 20:50:57 -0400 Subject: [PATCH] Updated readme & release version. --- chatterbot/__init__.py | 2 +- readme.md | 25 +++++++++++++++++-------- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/chatterbot/__init__.py b/chatterbot/__init__.py index 7f0f1db3b..4a9243cc4 100644 --- a/chatterbot/__init__.py +++ b/chatterbot/__init__.py @@ -1,5 +1,5 @@ from .chatterbot import ChatBot -__version__ = "0.2.7" +__version__ = "0.2.8" __maintainer__ = "Gunther Cox" __email__ = "gunthercx@gmail.com" diff --git a/readme.md b/readme.md index 2a30b6772..2be985c38 100644 --- a/readme.md +++ b/readme.md @@ -39,12 +39,7 @@ from chatterbot import ChatBot chatbot = ChatBot("Ron Obvious") # Train based on the english corpus - -# For better greetings -chatbot.train("chatterbot.corpus.english.greetings") - -# For more verbose conversations -chatbot.train("chatterbot.corpus.english.conversations") +chatbot.train("chatterbot.corpus.english") # Get a response to an input statement chatbot.get_response("Hello, how are you today?") @@ -55,8 +50,22 @@ chatbot.get_response("Hello, how are you today?") Chatterbot comes with a data utility module that can be used to train chat bots. At the moment there is only English training data in this module. Contributions of additional training data or training data in other languages would be greatly -appreciated. Take a look at the data files in the `chatterbot.corpus` directory -if you are interested in contributing. +appreciated. Take a look at the data files in the +[chatterbot/corpus](https://github.com/gunthercox/ChatterBot/tree/master/chatterbot/corpus) +directory if you are interested in contributing. + +``` +# Train based on the english corpus +chatbot.train("chatterbot.corpus.english") + +# Train based on english greetings corpus +chatbot.train("chatterbot.corpus.english.greetings") + +# Train based on the english conversations corpus +chatbot.train("chatterbot.corpus.english.conversations") +``` + +**Corpus contributions are welcome! Please make a pull request.** # Documentation