• Stars
    star
    111
  • Rank 312,650 (Top 7 %)
  • Language
  • Created about 8 years ago
  • Updated about 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

deepThought is a conversational smart bot

deepThought

一个聊天机器人

The answer to life, universe and everything is 42 --deepThought

目标

  • 具有从真实对话或语料库中学习的能力
  • 有泛化能力
  • 能从自然语言中推测用户意图
  • 针对意图,给予恰当回答(回调任务模块)
  • 构造通用的解析工具,将自然语言解析为结构化信息

核心概念

  • 实体 (Entity)
  • 意图 (intent)
  • 行动/响应(action)
  • 结构化的输出
  • 实体的模式
  • require 请求补齐
  • 上下文环境 (context)
  • session

设计

  • 插件化
  • 输入/输出
  • 存储
  • 逻辑单元
  • 事件驱动(意图)
  • 让数据在管道中流动
  • 区分两类bot
  • 闲聊型
  • 学习人类说话 * 在对话中学习
  • 助理型
  • 领域知识
  • 搜索
  • rich output
  • 不要放弃超链(支持富文本输出)
  • 采用ipython交互做实验
  • from IPython.display import HTML, Image, YouTubeVideo

涉及知识

  • 自然语言处理(NLP)
  • 中文分词
  • 命名实体识别
  • 模式匹配(Haskell)
  • 借鉴lisp
  • 机器学习
  • 朴素贝叶斯
  • RNN
  • LSTM

思路

提取结构化信息

  • 通过命名实体识别等取出语言的结构,之后转化为其他问题:
  • 作为机器学习的特征向量
  • 模式匹配问题(lisp)
  • 结构化的信息可以作为功能函数(action)的变量,以此来对接业务系统(database/RESTful)
  • 特征/意图到action的过程,通过学习和训练完成(神经网络/机器学习)
  • action可以对接到既有业务/系统(webapp/database/api)

intent的促发条件

  • intent的促发可以有依赖条件(类比django中的@require),由此进一步向用户索求信息,以不足促发条件

语料库

  • 电影字幕
  • 小说台词
  • 古龙
  • 构建openbot,开发技术和接口,也开放语料库,大家一起来收集真实语料库,通过开源和协议说明来处理隐私问题

Todo

  • 将wit作为bot的一个logic adapter
  • 添加timeout

Done

  • bot作为一个RESTful服务
  • 对接微信,作为自动回复机器人
  • 运行在树莓派上(长期稳定)
  • 文字 -> 语音

衍生计划

openBot(闲聊型)

  • 源码开放/服务开放/语料库开放
  • 允许接入到开发者自己的应用
  • http请求
  • sdk
  • 作为RESTful服务
  • 使用django-rest-framework作为框架,可以快速构建api
  • 丰富的免费午餐 * oauth2/access token * 访问(次数)控制
  • 后期可能需要考虑效率问题

openBot中需要关注的核心问题:如何设计一种机制,让这个过程具有扩张性(《失控》)

More Repositories

1

awesome-raspberry-pi-zh

树莓派(Raspberry Pi )资源大全中文版 , 包括工具、项目、镜像、资源等
2,053
star
2

wechat_bot

微信聊天机器人
Python
201
star
3

awesome-python-in-education-zh

Python在教育方面的资源列表
162
star
4

system-design-primer-zh_CN

system-design-primer 的中文翻译,原仓库 https://github.com/donnemartin/system-design-primer
Python
159
star
5

jobsVisualization

换一种姿势找合适的工作
Jupyter Notebook
136
star
6

paperweekly_forum

paperweekly's forum
Python
117
star
7

django_weixin_portal

第三方微信开发者账号管理平台
JavaScript
92
star
8

awesome-microbit-zh

micro:bit资源大全中文版
60
star
9

ibot

为命令行火车票查询器添加自然语言交互界面
Python
60
star
10

blockly_dev

JavaScript
50
star
11

awesome-cozmo

A curated list of Anki Cozmo resources.Feel free to contribute!
43
star
12

raspberrypi_api

把树莓派的硬件功能作为web api
Python
35
star
13

paperweekly_bot

a bot for paperweekly
Python
31
star
14

jobSpider

jobSpider是一只scrapy爬虫,用于爬取职位信息
Python
27
star
15

youkuXBlock

xblock for youku
Python
16
star
16

Dynaverse

Dynaverse: A Metaverse for Children of All Agess
15
star
17

begin_django

根据django最佳实践来布局,从这里开始一个django项目,免去一些繁琐的基础配置
Python
12
star
18

forum-poetry

收集整理我喜欢的网络诗集
10
star
19

edx_cypress_docker

Python
10
star
20

wwj718.github.io

wwj718.github.io
HTML
9
star
21

The_future_of_coding

better old thing.
8
star
22

codelab_adapter_client

Python Client of CodeLab Adapter v2.
Python
8
star
23

edx_siteapi

Python
7
star
24

blockly4pi

JavaScript
7
star
25

presentation-edx

my Open edX slide decks
HTML
6
star
26

code_of_learningjquery

《jQuery基础教程(第4版)》各章源代码
JavaScript
6
star
27

scratch-microbit-python-sdk

Python SDK for scratch-microbit HEX
Jupyter Notebook
6
star
28

figbed

figbed is an easy to use fig bed when you writing with markdown
Python
5
star
29

ROLS

Robot Operating Lite System
Python
5
star
30

realworld_django

实现类知乎的api接口约定和后端实现 , inspired by realworld
Python
4
star
31

happyNewYear2022

年会猜数字游戏前端
HTML
4
star
32

Personal-Computing-Papers

个人计算论文集
4
star
33

edx_tools

Jupyter Notebook
4
star
34

ncepu_helper

架设在bae
Python
4
star
35

DotPack

A dotPack simulator for Squeak
StringTemplate
3
star
36

raspberrypi-for-edu

将树莓派用于教育可能遇到的常见问题与解决方案
3
star
37

formbuilder_client

client for formbuilder
Python
3
star
38

wwj718-vim

my vimrc
3
star
39

youtube_download

在本地控制国外服务器下载youtube视频,为非技术人员准备
Python
3
star
40

hello_xuetang

实务学堂编程课
CSS
3
star
41

for_dinner

为了午饭时间能闻到土豆炖牛肉的香味 写的脚本
Python
3
star
42

oh-my-variable-names

给你的变量取个好名字
3
star
43

django_cas_server_lite

精简版的cas服务器,尽量减少依赖
Python
3
star
44

microblocks_messaging_library

MicroBlocks and Python Communication with Messages.
Python
3
star
45

simple_https

simple https server
Python
2
star
46

skill_issues

平时开发时的经验积累.为了提高开发效率.
2
star
47

WNE

WNE Not Evernote
HTML
2
star
48

if-I-die

2
star
49

stream_framework_example

just like pin
Python
2
star
50

awesome-chinese-nlp

收集中文自然语言处理相关的工具和资源
2
star
51

awesome-chatbot

A curated list of chatbot frameworks, platforms, tools and resources
2
star
52

openZettelkasten

Jupyter Notebook
2
star
53

gameshell_node

run codelab adapter node in gameshell.
Python
2
star
54

PBE-LightsOut

Lights Out game with Pharo
Smalltalk
2
star
55

Hermes

Hermes项目是一个尝试,将bot作为胶水,试图黏合各类通讯平台
2
star
56

bb8_with_blockly4pi

blockly4pi的bb8驱动
Python
2
star
57

neverland.py

Python client for CodeLab Neverland
1
star
58

weixin_robot

使用WeRoBot搭建的微信后台
Python
1
star
59

openBot

1
star
60

robomaster_EP_lab

Robo Master EP lab
Python
1
star
61

Cheat-Sheet

常用的速查表
1
star
62

BlackHatPython

python 黑帽子
Python
1
star
63

yige.ai_demo

yige.ai的demo案例
1
star
64

bokeh_demo_movies

Jupyter Notebook
1
star
65

psychohistory

心理史学
1
star
66

mdechp

Python
1
star
67

microblocks-cn-group

microblocks 中文用户组
1
star
68

OpenEdu

开源教育平台
1
star
69

ZhihuHelp

保存某位知乎用户的所有答案
Python
1
star
70

mathematical-formulas

学习web智能算法时常用的一些数学公式,存下方便以后再用。用来处理实验数据也很方便
Python
1
star
71

codelab.club

Makefile
1
star
72

pluginSystem

A Minimum Python Plugin System
Python
1
star
73

orctool

使用百度ORC实现照片转文字
Python
1
star
74

backbone_todo

JavaScript
1
star
75

openbot-python

Python library for openbot
Python
1
star
76

mytools

Shell
1
star
77

slide_microbit

HTML
1
star
78

xblock-simplevideo

该项目是跟随edx-xblock tutorial做的一个Video block demo,
Python
1
star
79

publish

publish your site/dir to cloud
Python
1
star
80

literatureCrawler

Python
1
star
81

lektor_blog

HTML
1
star
82

cookiecutter-xblock

Python
1
star
83

home_bootstrap_theme

使用bootstrap构建的单页面主题
JavaScript
1
star