www.teandq.com
晓安科普

万万没想到微软小冰官网(微软小冰人工智能官网)

2023-09-27Aix XinLe

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

艺术万万没想到微软小冰官网(微软小冰人工智能官网)

2023-09-27Aix XinLe52

万万没想到微软小冰官网(微软小冰人工智能官网)Start the Django app by running python manage.py runserver 0.0.0.0:8000。…

趣闻学到了微软小冰官网(微软小冰虚拟恋人官网)

2023-09-27Aix XinLe189

学到了微软小冰官网(微软小冰虚拟恋人官网)创造一个在亿万人之中,只属于你的“人”——将很快成为任何人都可实现的未来。以下是本次测试的用户体验片段:片段一:放我走吧,尽管我很想留下来,但我…

探索探索发现202344(探索发现2023年最新一期)学会了吗

2023-09-27Aix XinLe126

探索发现202344(探索发现2023年最新一期)学会了吗发展教育,教师为本。课题研究是教育科研的重要载体,更是提高教师教育教学能力的有效途径。…

知识小学《知识大全》(《知识大全》歇后语)学到了

2023-09-27Aix XinLe105

小学《知识大全》(《知识大全》歇后语)学到了歇后语 1、砌墙的砖头-后来居上2、关公战李逵-大刀阔斧3、狗咬吕洞宾-不识好人心4、外甥打灯笼-照旧 6、包公断案-铁面无私7、王婆卖瓜-自卖…

探索探索发现202344(探索发现2023考古)不要告诉别人

2023-09-27Aix XinLe171

探索发现202344(探索发现2023考古)不要告诉别人012路方面,0路号码当期开出了2枚奖号,1路号码当期开出了1枚奖号,2路号码当期则开出了3枚奖号占据优势。…