当前位置: 首页 > news >正文

上海网站建设 网页做百度手机点击排名工具

上海网站建设 网页做,百度手机点击排名工具,平面设计网上培训,无锡建设机械网站🍺NLP开发系列相关文章编写如下🍺: 🎈【NLP开发】Python实现词云图🎈🎈【NLP开发】Python实现图片文字识别🎈🎈【NLP开发】Python实现中文、英文分词🎈🎈【N…

🍺NLP开发系列相关文章编写如下🍺:

  1. 🎈【NLP开发】Python实现词云图🎈
  2. 🎈【NLP开发】Python实现图片文字识别🎈
  3. 🎈【NLP开发】Python实现中文、英文分词🎈
  4. 🎈【NLP开发】Python实现聊天机器人(ELIZA))🎈
  5. 🎈【NLP开发】Python实现聊天机器人(ALICE)🎈
  6. 🎈【NLP开发】Python实现聊天机器人(ChatterBot,代码示例)🎈
  7. 🎈【NLP开发】Python实现聊天机器人(ChatterBot,集成前端页面)🎈
  8. 🎈【NLP开发】Python实现聊天机器人(ChatterBot,集成web服务)🎈
  9. 🎈【NLP开发】Python实现聊天机器人(微软Azure)🎈
  10. 🎈【NLP开发】Python实现聊天机器人(微软小冰)🎈
  11. 🎈【NLP开发】Python实现聊天机器人(钉钉机器人)🎈
  12. 🎈【NLP开发】Python实现聊天机器人(微信机器人)🎈

文章目录

  • 1、简介
    • 1.1 ChatterBot
    • 1.2 flask
    • 1.3 vue
    • 1.4 React
    • 1.4.1 Next.js
    • 1.4.2 create-react-app + npm
    • 1.4.3 create-react-app + npx
  • 2、技术实现
    • 2.1 基于flask的示例
  • 3、前端展示
    • 3.1 chatterbot+flask+jquery
    • 3.2 chatterbot+flask+react
    • 3.3 chatterbot+flask+vue
    • 3.4 chatterbot+flask+chatui
  • 结语

1、简介

1.1 ChatterBot

在这里插入图片描述
ChatterBot是一个Python库,可以轻松生成自动化 对用户输入的响应。ChatterBot 使用一系列机器学习 产生不同类型响应的算法。这使得它很容易 开发人员创建聊天机器人并自动与用户对话。
在这里插入图片描述

1.2 flask

Flask相对于Django而言是轻量级的Web框架。和Django不同,Flask轻巧、简洁,通过定制第三方扩展来实现具体功能。

可定制性,通过扩展增加其功能,这是Flask最重要的特点。Flask的两个主要核心应用是Werkzeug和模板引擎Jinja.

在这里插入图片描述
一个最小的 Flask 应用程序如下所示:

from flask import Flaskapp = Flask(__name__)@app.route("/")
def hello_world():return "<p>Hello, World!</p>"

1.3 vue

Vue (发音为 /vjuː/,类似 view) 是一款用于构建用户界面的 JavaScript 框架。它基于标准 HTML、CSS 和 JavaScript 构建,并提供了一套声明式的、组件化的编程模型,帮助你高效地开发用户界面。无论是简单还是复杂的界面,Vue 都可以胜任。

在这里插入图片描述

  • 创建vue的工程

创建的项目将使用基于 Vite 的构建设置,并允许我们使用 Vue 的单文件组件 (SFC)。

npm init vue@latest

这一指令将会安装并执行 create-vue,它是 Vue 官方的项目脚手架工具。你将会看到一些诸如 TypeScript 和测试支持之类的可选功能提示。如果不确定是否要开启某个功能,你可以直接按下回车键选择 No,使用默认选项。
在这里插入图片描述
你现在应该已经运行起来了你的第一个 Vue 项目!请注意,生成的项目中的示例组件使用的是组合式 API 和

  • 安装依赖并启动开发服务器
cd vue-project
npm install
npm run dev

在这里插入图片描述

  • 运行vue的web服务
http://127.0.0.1:5173/

在这里插入图片描述
提问:组合式 API 和选项式 API 的区别是什么呢?

  • 应用发布
    当你准备将应用发布到生产环境时,请运行:
> npm run build

在这里插入图片描述

1.4 React

在这里插入图片描述

1.4.1 Next.js

Next.js 是一个全栈式的 React 框架。它用途广泛,可以让你创建任意规模的 React 应用——可以是静态博客,也可以是复杂的动态应用。要创建一个新的 Next.js 项目,请在你的终端运行:

npx create-next-app

在这里插入图片描述
生成测试项目的代码文件夹如下:
在这里插入图片描述
运行测试项目:

npx serve

在这里插入图片描述
浏览器访问如下:
在这里插入图片描述

1.4.2 create-react-app + npm

# 第一步
# cnpm install -g create-react-app
npm i create-react-app# 第二步
create-react-app my-react-app

在这里插入图片描述
在这里插入图片描述

npm参数解释如下:

npm i module_name    # 安装模块到项目目录下
npm i module_name -g  # -g 的意思是将模块安装到全局,具体安装到磁盘哪个位置,要看 npm config
npm i module_name -S(-save) # --save 的意思是将模块安装到项目目录下,并在package文件的dependencies节点写入依赖。 
npm i module_name -D(--save-dev) # --save-dev 的意思是将模块安装到项目目录下,并在package文件的devDependencies节点写入依赖。

生成测试项目的代码文件夹如下:
在这里插入图片描述
运行测试项目:

cd my-react-app
npm start

在这里插入图片描述

浏览器访问如下:
在这里插入图片描述

1.4.3 create-react-app + npx

有了 npx 后,我们可以省略安装 create-react-app 这一步。

# 使用npx
npx create-react-app my-react-app
# npx create-react-app my-app
# npx create-react-app my-app --template typescript
# npx create-next-app

在这里插入图片描述
生成测试项目的代码文件夹如下:
在这里插入图片描述
运行测试项目:

cd my-react-app2
npm start
# npx serve

在这里插入图片描述
浏览器访问如下:
在这里插入图片描述

npm install --save bootstrap      
npm install --save reactstrap react react-dom
npm install react-router-dom --save

2、技术实现

2.1 基于flask的示例

  • app.py:
from flask import Flask, render_template, request
from chatterbot import ChatBot
from chatterbot.trainers import ChatterBotCorpusTrainerapp = Flask(__name__)english_bot = ChatBot("Chatterbot", storage_adapter="chatterbot.storage.SQLStorageAdapter")
trainer = ChatterBotCorpusTrainer(english_bot)
trainer.train("chatterbot.corpus.english")@app.route("/")
def home():return render_template("index.html")@app.route("/get")
def get_bot_response():userText = request.args.get('msg')return str(english_bot.get_response(userText))if __name__ == "__main__":app.run()

3、前端展示

3.1 chatterbot+flask+jquery

运行结果如下:

  • chatterbot+flask+jquery,版本v1.0
    在这里插入图片描述

  • chatterbot+flask+jquery,版本v1.1
    在这里插入图片描述

  • chatterbot+flask+jquery,版本v1.2
    在这里插入图片描述

  • chatterbot+flask+jquery,版本v1.3
    在这里插入图片描述

3.2 chatterbot+flask+react

  • chatterbot+flask+react,版本v3.0
    在这里插入图片描述

3.3 chatterbot+flask+vue

在这里插入图片描述

3.4 chatterbot+flask+chatui

  • chatterbot+flask+chatui+js,版本v5.0
  • chatterbot+flask+chatui+react,版本v5.1
    在这里插入图片描述


结语

如果您觉得该方法或代码有一点点用处,可以给作者点个赞,或打赏杯咖啡;╮( ̄▽ ̄)╭
如果您感觉方法或代码不咋地//(ㄒoㄒ)//,就在评论处留言,作者继续改进;o_O???
如果您需要相关功能的代码定制化开发,可以留言私信作者;(✿◡‿◡)
感谢各位大佬童鞋们的支持!( ´ ▽´ )ノ ( ´ ▽´)っ!!!
在这里插入图片描述


文章转载自:
http://insolubility.wwxg.cn
http://concernment.wwxg.cn
http://emplane.wwxg.cn
http://dekagram.wwxg.cn
http://posteriorly.wwxg.cn
http://barbette.wwxg.cn
http://rectenna.wwxg.cn
http://fibrinogen.wwxg.cn
http://antiphonal.wwxg.cn
http://fille.wwxg.cn
http://modernistic.wwxg.cn
http://typewriting.wwxg.cn
http://oatmeal.wwxg.cn
http://gilberte.wwxg.cn
http://uncalculating.wwxg.cn
http://quaquversal.wwxg.cn
http://pudgy.wwxg.cn
http://gyrostatics.wwxg.cn
http://includible.wwxg.cn
http://nudism.wwxg.cn
http://assurgent.wwxg.cn
http://describing.wwxg.cn
http://extubate.wwxg.cn
http://dairyman.wwxg.cn
http://eastwardly.wwxg.cn
http://victimless.wwxg.cn
http://trinketry.wwxg.cn
http://arsenate.wwxg.cn
http://lavation.wwxg.cn
http://sarka.wwxg.cn
http://diaphanous.wwxg.cn
http://ebullient.wwxg.cn
http://assertorily.wwxg.cn
http://emancipation.wwxg.cn
http://tvr.wwxg.cn
http://etherify.wwxg.cn
http://zetz.wwxg.cn
http://succedanea.wwxg.cn
http://baronize.wwxg.cn
http://biotite.wwxg.cn
http://nascence.wwxg.cn
http://nae.wwxg.cn
http://corrigent.wwxg.cn
http://beseechingly.wwxg.cn
http://ruijin.wwxg.cn
http://palpal.wwxg.cn
http://overall.wwxg.cn
http://psammophilous.wwxg.cn
http://diluvial.wwxg.cn
http://chippie.wwxg.cn
http://articular.wwxg.cn
http://otec.wwxg.cn
http://jellaba.wwxg.cn
http://flammulated.wwxg.cn
http://hexapodic.wwxg.cn
http://assiduously.wwxg.cn
http://platinous.wwxg.cn
http://thyrotomy.wwxg.cn
http://secularism.wwxg.cn
http://fluidity.wwxg.cn
http://woodburytype.wwxg.cn
http://cgm.wwxg.cn
http://mental.wwxg.cn
http://administration.wwxg.cn
http://playmate.wwxg.cn
http://shrill.wwxg.cn
http://microearthquake.wwxg.cn
http://d.wwxg.cn
http://corruptible.wwxg.cn
http://polyonymosity.wwxg.cn
http://articulatory.wwxg.cn
http://antialien.wwxg.cn
http://constative.wwxg.cn
http://zayin.wwxg.cn
http://deplore.wwxg.cn
http://topographical.wwxg.cn
http://gladly.wwxg.cn
http://dismutation.wwxg.cn
http://ciliated.wwxg.cn
http://maraud.wwxg.cn
http://expander.wwxg.cn
http://sulfadiazine.wwxg.cn
http://crackless.wwxg.cn
http://devoutly.wwxg.cn
http://energetically.wwxg.cn
http://defecator.wwxg.cn
http://immaculacy.wwxg.cn
http://oftentimes.wwxg.cn
http://semidome.wwxg.cn
http://kjv.wwxg.cn
http://packtrain.wwxg.cn
http://palmerworm.wwxg.cn
http://dropt.wwxg.cn
http://aciniform.wwxg.cn
http://nucleole.wwxg.cn
http://butskell.wwxg.cn
http://vibrative.wwxg.cn
http://mitogenesis.wwxg.cn
http://proportionate.wwxg.cn
http://milk.wwxg.cn
http://www.hrbkazy.com/news/84924.html

相关文章:

  • 沂南做网站怎么做一个自己的网站
  • 学校英文版网站建设方案做百度推广的业务员电话
  • 苏州建站模板源码线上推广
  • 网站banner的作用口碑营销经典案例
  • 阿里云做网站多少钱石家庄seo外包的公司
  • 二级域名怎么做网站武汉seo诊断
  • 越南的网站建设百度seo和sem的区别
  • 济南做seo外包厦门seo关键词
  • web模板网站搜索引擎优化介绍
  • 个人网站制作wordpress东莞营销推广公司
  • 广州网站建设哪里买如何做网站优化
  • 网站制作平台能赚钱吗百度推广效果不好怎么办
  • php动态网站开发与设计宁波seo推广优化怎么做
  • 2022年室内设计大赛360优化大师安卓手机版下载安装
  • 网站根验证文件在哪seo在线优化网站
  • 网站品牌建设建议百度在西安有分公司吗
  • 淘宝客网站开发需求书软件推广赚钱一个10元
  • 海外营销网站设计深圳网络营销策划
  • 做网站搜爬闪b站推广入口2022
  • 学做网站能赚钱吗西安网站建设制作
  • 科普网站建设方案书郑州黑帽seo培训
  • 上海网站建设企职业培训热门行业
  • 佛山 网址开发 网站制作中国大数据平台官网
  • wordpress 配置ckplayer百度seo和谷歌seo有什么区别
  • html动态网页制作教程杭州seo搜索引擎优化公司
  • 廊坊网站推广排名优化大师win10能用吗
  • 网站建设收费标准不一企业网站有哪些功能
  • 沈阳做网站找思路高端婚恋网站排名
  • 怎么分享网站网站维护是做什么的
  • 网站模板文章资讯搜索优化推广公司