万万没想到微软小冰官网(微软小冰人工智能官网)
Start the Django app by running python manage.py runserver 0.0.0.0:8000。
聊天机器人介绍 对AI聊天机器人大家可能不陌生,MS小冰机器人,各大网购网站都有很多智能聊天助手等等,聊天的水平都还挺不错聊天机器人实例 例子1: 一个demo网站,貌似水平比较高 https://demo.deeppavlov.ai/#/en/chat。
微软小冰: https://www.xiaoice.com/ 快速搭建一个AI聊天机器人 1)介绍一下系统,Win10,python3.6版本 2)gitbash 拉一下项目 https://github.com/gunthercox/ChatterBot/
3)安装一下 pip install chatterbot 4)尝试一下example里面的Django项目 ChatterBot-master\examples\django_app>python manage.py runserver 0.0.0.0:8000
发现提示没有安装django 4.1)安装django https://www.djangoproject.com/download/ pip install Django 4.2)再次运行 python manage.py runserver 0.0.0.0:8000
4.3)报错: ModuleNotFoundError: No module named spacy pip install spacy 4.4)再次运行又报错,这次 网上找了一下,尝试 python -m spacy download en
python -m spacy download en_core_web_sm 运行还有错,修改代码如下:根据报错信息,强制name。
4.5)修改 C:\Users\xxx\ChatterBot-master\examples\django_app\example_app里面的setting.py https://blog.csdn.net/appleyuchi/article/details/104702412
改变的地方有3处①MIDDLEWARE_CLASSES->MIDDLEWARE②元组()改成列表[]③django.contrib.auth.middleware.SessionAuthenticationMiddleware,在Django新版本中删除
https://www.cnblogs.com/dyd520/p/11598490.htmlhttps://www.cnblogs.com/dyd520/p/11598490.html ok
感觉快要成了!
https://chatterbot.readthedocs.io/en/stable/django/index.html 看看怎么使用
无聊程序猿
=========================ChatterBot Django Example=========================This is an example Django app that shows how to create a simple chat bot web
app using Django_ and ChatterBot_.Documentation-------------Start the Django app by running `python manage.py runserver 0.0.0.0:8000`
Further documentation on getting set up with Django and ChatterBot can befound in the `ChatterBot documentation`_.
.. _Django: https://www.djangoproject.com.. _ChatterBot: https://github.com/gunthercox/ChatterBot.. _ChatterBot documentation: http://chatterbot.readthedocs.io/en/stable/django/index.html
免责声明:本站所有信息均搜集自互联网,并不代表本站观点,本站不对其真实合法性负责。如有信息侵犯了您的权益,请告知,本站将立刻处理。联系QQ:1640731186