Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gunthercox/chatterbot-corpus
A multilingual dialog corpus
https://github.com/gunthercox/chatterbot-corpus
chatterbot corpus dialog language yaml
Last synced: 29 days ago
JSON representation
A multilingual dialog corpus
- Host: GitHub
- URL: https://github.com/gunthercox/chatterbot-corpus
- Owner: gunthercox
- License: bsd-3-clause
- Created: 2017-01-11T02:56:38.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-02-21T18:40:05.000Z (9 months ago)
- Last Synced: 2024-09-30T23:01:43.978Z (about 1 month ago)
- Topics: chatterbot, corpus, dialog, language, yaml
- Language: Python
- Homepage: http://chatterbot-corpus.readthedocs.io
- Size: 536 KB
- Stars: 1,367
- Watchers: 69
- Forks: 1,146
- Open Issues: 79
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
- awesome - chatterbot-corpus - A multilingual dialog corpus (Python)
README
# ChatterBot Language Training Corpus
[![Package Version](https://img.shields.io/pypi/v/chatterbot-corpus.svg)](https://pypi.python.org/pypi/chatterbot-corpus/)
[![Build Status](https://travis-ci.org/gunthercox/chatterbot-corpus.svg?branch=master)](https://travis-ci.org/gunthercox/chatterbot-corpus)These modules are used to quickly train ChatterBot to respond to various inputs in different languages.
Although much of ChatterBot is designed to be language independent, it is still useful to have these
training sets available to prime a fresh database and make the variety of responses that a bot can yield
much more diverse.For instructions on how to use these data sets, please refer to the [project documentation](http://chatterbot.readthedocs.io/en/latest/training.html#training-with-corpus-data).
All training data contained within this corpus is user contributed.
If you are interested in contributing support for a new language please create a pull request. Additions are welcomed!
# Create your own Corpus Training data
Chatterbot is a very flexible and dynamic chatbot that you easily can create your own training data and structure.
Create or copy an existing .yml file and put that file in a existing or a new directory you created under `chatterbot_corpus\data\`
Edit that file with any text editor that you like to work with.In the beginning of the file you set one or two categories.
```
categories:
- myown
- my own categories
````Then can you start your actual training conversation data.
```
conversations:
- - Hello
- Hello
- - Hi
- Hello
```# Install your training corpus data to Django
You need to install chatterbot as the [Quick Start Guide](http://chatterbot.readthedocs.io/en/stable/quickstart.html).
When the installation are done, please go to `(Virtual Env)/lib/pythonX.X/site-packages/chatterbot_corpus/data/` directory.
Here is the same structure as you can find in this GitHub repo, here is the area where you can create your own directories and conversation files.When you are done with your files, then can you edit the Django `setting.py` file and locate the chatterbot training section.
Here do you need to add `chatterbot.corpus..````
'training_data': [
'chatterbot.corpus.english.greeting',
'chatterbot.corpus.custom.myown',
'chatterbot.corpus.swedish.food'
]
```When you are done, please proceed with the Django Chatterbot Training session.
# Unit Testing
“A true professional does not waste the time and money of other people by handing over software that is not reasonably free of obvious bugs; that has not undergone minimal unit testing; that does not meet the specifications and requirements; that is gold-plated with unnecessary features; or that looks like junk.” – Daniel Read
```
pip install -r dev-requirements.txt
nosetests
```