{"id":13467975,"url":"https://github.com/gunthercox/ChatterBot","last_synced_at":"2025-03-26T03:31:21.283Z","repository":{"id":21246359,"uuid":"24561828","full_name":"gunthercox/ChatterBot","owner":"gunthercox","description":"ChatterBot is a machine learning, conversational dialog engine for creating chat bots","archived":false,"fork":false,"pushed_at":"2025-01-17T22:47:22.000Z","size":4371,"stargazers_count":14159,"open_issues_count":395,"forks_count":4458,"subscribers_count":545,"default_branch":"master","last_synced_at":"2025-01-22T11:01:40.230Z","etag":null,"topics":["bot","chatbot","chatterbot","conversation","language","machine-learning","python"],"latest_commit_sha":null,"homepage":"https://chatterbot.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gunthercox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/contributing.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-09-28T14:49:00.000Z","updated_at":"2025-01-22T09:57:17.000Z","dependencies_parsed_at":"2022-08-07T10:00:07.984Z","dependency_job_id":"40579d51-ff91-4a97-9267-f9f8efc170ab","html_url":"https://github.com/gunthercox/ChatterBot","commit_stats":{"total_commits":1695,"total_committers":106,"mean_commits":15.99056603773585,"dds":"0.21769911504424777","last_synced_commit":"4ff8af28567ed446ae796d37c246bb6a14032fe7"},"previous_names":[],"tags_count":86,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gunthercox%2FChatterBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gunthercox%2FChatterBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gunthercox%2FChatterBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gunthercox%2FChatterBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gunthercox","download_url":"https://codeload.github.com/gunthercox/ChatterBot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245401331,"owners_count":20609166,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","chatbot","chatterbot","conversation","language","machine-learning","python"],"created_at":"2024-07-31T15:01:03.515Z","updated_at":"2025-03-26T03:31:21.259Z","avatar_url":"https://github.com/gunthercox.png","language":"Python","readme":"![ChatterBot: Machine learning in Python](https://i.imgur.com/b3SCmGT.png)\n\n# ChatterBot\n\nChatterBot is a machine-learning based conversational dialog engine built in\nPython which makes it possible to generate responses based on collections of\nknown conversations. The language independent design of ChatterBot allows it\nto be trained to speak any language.\n\n[![Package Version](https://img.shields.io/pypi/v/chatterbot.svg)](https://pypi.python.org/pypi/chatterbot/)\n[![Python 3.9](https://img.shields.io/badge/python-3.9-blue.svg)](https://www.python.org/downloads/release/python-360/)\n[![Coverage Status](https://img.shields.io/coveralls/gunthercox/ChatterBot.svg)](https://coveralls.io/r/gunthercox/ChatterBot)\n[![Code Climate](https://codeclimate.com/github/gunthercox/ChatterBot/badges/gpa.svg)](https://codeclimate.com/github/gunthercox/ChatterBot)\n[![Join the chat at https://gitter.im/chatterbot/Lobby](https://badges.gitter.im/chatterbot/Lobby.svg)](https://gitter.im/chatterbot/Lobby?utm_source=badge\u0026utm_medium=badge\u0026utm_content=badge)\n\nAn example of typical input would be something like this:\n\n\u003e **user:** Good morning! How are you doing?  \n\u003e **bot:**  I am doing very well, thank you for asking.  \n\u003e **user:** You're welcome.  \n\u003e **bot:** Do you like hats?  \n\n## How it works\n\nAn untrained instance of ChatterBot starts off with no knowledge of how to communicate. Each time a user enters a statement, the library saves the text that they entered and the text that the statement was in response to. As ChatterBot receives more input the number of responses that it can reply and the accuracy of each response in relation to the input statement increase. The program selects the closest matching response by searching for the closest matching known statement that matches the input, it then returns the most likely response to that statement based on how frequently each response is issued by the people the bot communicates with.\n\n# [Documentation](https://docs.chatterbot.us)\n\nView the [documentation](https://docs.chatterbot.us)\nfor ChatterBot.\n\n## Installation\n\nThis package can be installed from [PyPi](https://pypi.python.org/pypi/ChatterBot) by running:\n\n```bash\npip install chatterbot\n```\n\n## Basic Usage\n\n```python\nfrom chatterbot import ChatBot\nfrom chatterbot.trainers import ChatterBotCorpusTrainer\n\nchatbot = ChatBot('Ron Obvious')\n\n# Create a new trainer for the chatbot\ntrainer = ChatterBotCorpusTrainer(chatbot)\n\n# Train the chatbot based on the english corpus\ntrainer.train(\"chatterbot.corpus.english\")\n\n# Get a response to an input statement\nchatbot.get_response(\"Hello, how are you today?\")\n```\n\n# Training data\n\nChatterBot comes with a data utility module that can be used to train chat bots.\nAt the moment there is training data for over a dozen languages in this module.\nContributions of additional training data or training data\nin other languages would be greatly appreciated. Take a look at the data files\nin the [chatterbot-corpus](https://github.com/gunthercox/chatterbot-corpus)\npackage if you are interested in contributing.\n\n```python\nfrom chatterbot.trainers import ChatterBotCorpusTrainer\n\n# Create a new trainer for the chatbot\ntrainer = ChatterBotCorpusTrainer(chatbot)\n\n# Train based on the english corpus\ntrainer.train(\"chatterbot.corpus.english\")\n\n# Train based on english greetings corpus\ntrainer.train(\"chatterbot.corpus.english.greetings\")\n\n# Train based on the english conversations corpus\ntrainer.train(\"chatterbot.corpus.english.conversations\")\n```\n\n**Corpus contributions are welcome! Please make a pull request.**\n\n# Examples\n\nFor examples, see the [examples](https://docs.chatterbot.us/examples/)\nsection of the documentation.\n\n# History\n\nSee release notes for changes https://github.com/gunthercox/ChatterBot/releases\n\n# Development pattern for contributors\n\n1. [Create a fork](https://help.github.com/articles/fork-a-repo/) of\n   the [main ChatterBot repository](https://github.com/gunthercox/ChatterBot) on GitHub.\n2. Make your changes in a branch named something different from `master`, e.g. create\n   a new branch `my-pull-request`.\n3. [Create a pull request](https://help.github.com/articles/creating-a-pull-request/).\n4. Please follow the [Python style guide for PEP-8](https://www.python.org/dev/peps/pep-0008/).\n5. Use the projects [built-in automated testing](https://docs.chatterbot.us/testing.html).\n   to help make sure that your contribution is free from errors.\n\n# License\n\nChatterBot is licensed under the [BSD 3-clause license](https://opensource.org/licenses/BSD-3-Clause).\n","funding_links":[],"categories":["Python","A01_文本生成_文本对话","Codes","文本数据和NLP","Tools For Building Bots","Chinese NLP Toolkits 中文NLP工具"],"sub_categories":["其他_文本生成_文本对话","QA \u0026 Chatbot 问答和聊天机器人"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgunthercox%2FChatterBot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgunthercox%2FChatterBot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgunthercox%2FChatterBot/lists"}