This is a :term:`corpus` of dialog data that is included in the chatterbot module.
Additional information about the chatterbot-corpus
module can be found
in the ChatterBot Corpus Documentation.
Corpus data is user contributed, but it is also not difficult to create one if you are familiar with the language. This is because each corpus is just a sample of various input statements and their responses for the bot to train itself with.
To explore what languages and collections of corpora are available, check out the chatterbot_corpus/data directory in the separate chatterbot-corpus repository.
Note
If you are interested in contributing content to the corpus, please feel free to submit a pull request on ChatterBot's corpus GitHub page. Contributions are welcomed!
https://github.com/gunthercox/chatterbot-corpus
The chatterbot-corpus
is distributed in its own Python package so that it can
be released and upgraded independently from the chatterbot
package.
Now that you have created your chat bot and sent it out into the world, perhaps you are looking for a way to share what it has learned with other chat bots? ChatterBot's training module provides methods that allow you to export the content of your chat bot's database as a training corpus that can be used to train other chat bots.
chatbot = ChatBot('Export Example Bot')
chatbot.trainer.export_for_training('./export.yml')
Here is an example:
.. literalinclude:: ../examples/export_example.py :language: python
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。