# 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\<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](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.<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 dev-requirements.txt
nosetests
```
没有合适的资源?快使用搜索试试~ 我知道了~
chatterbot语料 yml格式 560万 科学、历史、文学、食物、常用语均有涉猎,一共17种、按国家语言分类一共22种
共195个文件
yml:175个
py:7个
txt:2个
需积分: 11 0 下载量 24 浏览量
2023-02-06
12:31:51
上传
评论
收藏 244KB ZIP 举报
温馨提示
chatterbot语料 yml格式 560万 科学、历史、文学、食物、常用语均有涉猎,一共17种、按国家语言分类一共22种 chatterbot语料 yml格式 560万 科学、历史、文学、食物、常用语均有涉猎,一共17种、按国家语言分类一共22种 chatterbot语料 yml格式 560万 科学、历史、文学、食物、常用语均有涉猎,一共17种、按国家语言分类一共22种 chatterbot语料 yml格式 560万 科学、历史、文学、食物、常用语均有涉猎,一共17种、按国家语言分类一共22种 chatterbot语料 yml格式 560万 科学、历史、文学、食物、常用语均有涉猎,一共17种、按国家语言分类一共22种 chatterbot语料 yml格式 560万 科学、历史、文学、食物、常用语均有涉猎,一共17种、按国家语言分类一共22种
资源推荐
资源详情
资源评论
收起资源包目录
chatterbot语料 yml格式 560万 科学、历史、文学、食物、常用语均有涉猎,一共17种、按国家语言分类一共22种 (195个子文件)
setup.cfg 162B
style.css 55B
.gitignore 74B
layout.html 438B
MANIFEST.in 234B
package.json 691B
readme.md 3KB
license.md 1KB
perfilbot 2KB
test_corpus.py 5KB
conf.py 5KB
test_data.py 2KB
setup.py 2KB
__init__.py 199B
corpus.py 132B
__init__.py 0B
data.rst 1KB
index.rst 825B
dev-requirements.txt 77B
新建文本文档.txt 0B
humor.yml 62KB
emotion.yml 41KB
psychology.yml 35KB
emotion.yml 16KB
emotion.yml 14KB
ai.yml 13KB
psicologia.yml 12KB
emociones.yml 11KB
IA.yml 11KB
money.yml 11KB
emotion.yml 10KB
literature.yml 10KB
gossip.yml 9KB
science.yml 9KB
trivia.yml 9KB
psychology.yml 9KB
ai.yml 8KB
psychology.yml 8KB
humor.yml 7KB
emotions.yml 6KB
humor.yml 6KB
humor.yml 6KB
psychology.yml 6KB
movies.yml 6KB
botprofile.yml 6KB
computer.yml 6KB
literature.yml 6KB
psychology.yml 6KB
psychology.yml 6KB
food.yml 5KB
conversations.yml 5KB
politics.yml 5KB
conversations.yml 5KB
conversations.yml 5KB
computers.yml 5KB
greetings.yml 5KB
emotion.yml 5KB
literature.yml 5KB
conversations.yml 5KB
humor.yml 5KB
conversations.yml 5KB
ai.yml 4KB
linguistic_knowledge.yml 4KB
computers.yml 4KB
ai.yml 4KB
literature.yml 4KB
literature.yml 4KB
conversations.yml 4KB
conversations.yml 4KB
conversations.yml 4KB
computers.yml 4KB
computers.yml 4KB
conversations.yml 4KB
conversations.yml 4KB
conversations.yml 4KB
sports.yml 3KB
compliment.yml 3KB
history.yml 3KB
proverbs.yml 3KB
science.yml 3KB
gossip.yml 3KB
money.yml 3KB
sports.yml 3KB
conversations.yml 3KB
ai.yml 3KB
conversations.yml 3KB
trivia.yml 3KB
dinero.yml 3KB
money.yml 3KB
money.yml 3KB
emotion.yml 3KB
emotion.yml 3KB
science.yml 3KB
conversations.yml 2KB
science.yml 2KB
science.yml 2KB
money.yml 2KB
greetings.yml 2KB
science.yml 2KB
gossip.yml 2KB
共 195 条
- 1
- 2
资源评论
海人001
- 粉丝: 1695
- 资源: 39
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功