[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-9625":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":23,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":32,"readmeContent":33,"aiSummary":34,"trendingCount":16,"starSnapshotCount":16,"syncStatus":17,"lastSyncTime":35,"discoverSource":36},9625,"ChatterBot","gunthercox\u002FChatterBot","gunthercox","ChatterBot is a machine learning, conversational dialog engine for creating chat bots","http:\u002F\u002Fdocs.chatterbot.us\u002F",null,"Python",14487,4427,524,65,0,2,9,71.9,"BSD 3-Clause \"New\" or \"Revised\" License",false,"master",true,[25,26,27,28,29,30,31],"bot","chatbot","chatterbot","conversation","language","machine-learning","python","2026-06-12 04:00:46","![ChatterBot: Machine learning in Python](https:\u002F\u002Fi.imgur.com\u002Fb3SCmGT.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:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fv\u002Fchatterbot.svg)](https:\u002F\u002Fpypi.python.org\u002Fpypi\u002Fchatterbot\u002F)\n[![Python 3.12](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fpython-3.12-blue.svg)](https:\u002F\u002Fwww.python.org\u002Fdownloads\u002Frelease\u002Fpython-360\u002F)\n[![Coverage Status](https:\u002F\u002Fimg.shields.io\u002Fcoveralls\u002Fgunthercox\u002FChatterBot.svg)](https:\u002F\u002Fcoveralls.io\u002Fr\u002Fgunthercox\u002FChatterBot)\n[![Follow on Bluesky](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F🦋%20Bluesky-1185fe)](https:\u002F\u002Fbsky.app\u002Fprofile\u002Fchatterbot.us)\n[![Join the chat at https:\u002F\u002Fgitter.im\u002Fchatterbot\u002FLobby](https:\u002F\u002Fbadges.gitter.im\u002Fchatterbot\u002FLobby.svg)](https:\u002F\u002Fgitter.im\u002Fchatterbot\u002FLobby?utm_source=badge&utm_medium=badge&utm_content=badge)\n\u003C!-- [![Code Climate](https:\u002F\u002Fcodeclimate.com\u002Fgithub\u002Fgunthercox\u002FChatterBot\u002Fbadges\u002Fgpa.svg)](https:\u002F\u002Fcodeclimate.com\u002Fgithub\u002Fgunthercox\u002FChatterBot) -->\n\nAn example of typical input would be something like this:\n\n> **user:** Good morning! How are you doing?  \n> **bot:**  I am doing very well, thank you for asking.  \n> **user:** You're welcome.  \n> **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 to, and the accuracy of each response in relation to the input statement increases. 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:\u002F\u002Fdocs.chatterbot.us)\n\nView the [documentation](https:\u002F\u002Fdocs.chatterbot.us)\nfor ChatterBot.\n\n## Installation\n\nThis package can be installed from [PyPi](https:\u002F\u002Fpypi.python.org\u002Fpypi\u002FChatterBot) 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:\u002F\u002Fgithub.com\u002Fgunthercox\u002Fchatterbot-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:\u002F\u002Fdocs.chatterbot.us\u002Fexamples\u002F)\nsection of the documentation.\n\n# History\n\nSee release notes for changes https:\u002F\u002Fgithub.com\u002Fgunthercox\u002FChatterBot\u002Freleases\n\n# Contributing\n\nContributions are welcomed, to help ensure a smooth process please start with the contributing guidelines in our documentation:\nhttps:\u002F\u002Fdocs.chatterbot.us\u002Fcontributing\u002F\n\n# Sponsors\n\nChatterBot is sponsored by:\n\n\u003Cp>\n   \u003Ca href=\"https:\u002F\u002Fwww.testmuai.com\u002F?utm_source=chatterbot&utm_medium=sponsor\" target=\"_blank\">\n      \u003Cimg src=\"docs\u002F_static\u002Ftestmu-ai-white-logo.png\" style=\"vertical-align: middle;\" width=\"250\" height=\"80\" \u002F>\n   \u003C\u002Fa>\n\u003C\u002Fp>\n\n# License\n\nChatterBot is licensed under the [BSD 3-clause license](https:\u002F\u002Fopensource.org\u002Flicenses\u002FBSD-3-Clause).\n","ChatterBot 是一个基于机器学习的对话引擎，用于创建聊天机器人。它使用Python编写，能够根据已知的对话集生成回复，支持多种语言训练，具有语言无关性设计的特点。通过不断学习用户输入，ChatterBot 能够逐渐提高其回复的准确性和相关性。该项目适合需要快速搭建简单聊天机器人服务的场景，如客户服务自动化、个人助手等。安装和使用都非常便捷，只需几行代码即可开始训练并运行自己的聊天机器人。","2026-06-11 03:23:49","top_topic"]