GithubHelp home page GithubHelp logo

wdashi-hk / chatterbot-corpus Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gunthercox/chatterbot-corpus

0.0 1.0 0.0 405 KB

A multilingual dialog corpus

Home Page: http://chatterbot-corpus.readthedocs.io

License: BSD 3-Clause "New" or "Revised" License

Python 100.00%

chatterbot-corpus's Introduction

ChatterBot Language Training Corpus

Package Version Build Status

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.

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\<NEW DIRECTORY> 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. 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.<DIRECTORY>.<FILENAME>

    '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 requirements.txt
nosetests

chatterbot-corpus's People

Contributors

gunthercox avatar virtadpt avatar martmists-gh avatar indiclinguist avatar mgmadvance avatar sporting avatar tiagotmc avatar julianoengineer avatar clemcrafts avatar fgruslan avatar nsnietol avatar mohan08p avatar michab23 avatar edwarddunn avatar peroh215 avatar wipsdafox avatar swathy06 avatar mayank11196 avatar fabturing avatar thomaskoscheck avatar rushilsrivastava avatar neufii avatar miaranadiy avatar kelvinau avatar alekaizer avatar ivanmoreau avatar harshgrandeur avatar emijrp avatar property404 avatar yusuf-celik avatar

Watchers

wdashi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.