Code Monkey home page Code Monkey logo

chatbot-1's Introduction

基于Qt与Tensorflow的聊天机器人

这个聊天机器人使用Qt实现一个客户端窗口,用于与用户进行交互。使用python3的Tensorflow深度学习库和Seq2Seq模型实现一个后端的AI作为服务器,两者通过udp协议进行通信。

使用方法

端口

服务器默认使用8082端口,客户端默认使用8084端口。如果默认端口被占用可进行修改。例如令服务器使用8086端口,则需在start.sh中将port修改为8086,并在widget类的构造函数中将remoteport变量赋值为8086。令客户端使用8088端口则只需在widget类的构造函数中将localport变量赋值为8088。

客户端

客户端使用Qt,有用户输入,发送,显示聊天记录等功能 还可以更改字体大小颜色斜体粗体等等,以及清屏

服务器

具体请参阅chatbot-server目录下的readme.md

优缺点

项目优点

  • 利用了近年火热的深度学习技术
  • 通过socket实现python与qt之间的通信
  • 客户端添加了更改字体功能

项目缺点

  • 客户端功能太过于简单
  • 客户端和服务器只能运行在同一台主机上
  • 必须安装tensorflow深度学习库
  • 训练所需的计算资源过多,主机的性能需要足够强
  • AI的回答并不是太好

chatbot-1's People

Contributors

xorsum avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.