V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
fendouai_com
V2EX  ›  Python

5 步做一个 TensorFlow 聊天机器人: DeepQA [是的,就是这么简单,有问题欢迎回复]

  •  
  •   fendouai_com · 2017-09-05 15:09:35 +08:00 · 6971 次点击
    这是一个创建于 2424 天前的主题,其中的信息可能已经有所发展或是发生改变。

    项目截图:

    实测截图:

    一步一步教程:

    1.下载这个项目: https://github.com/Conchylicultor/DeepQA

    2.下载训练好的模型:

    https://drive.google.com/file/d/0Bw-phsNSkq23OXRFTkNqN0JGUU0/view

    (如果网址不能打开的话,今晚我会上传到百度网盘,分享到: http://www.tensorflownews.com/)

    3.解压之后放在 项目 save 目录下 如图所示

    4.复制 save/model-pretrainedv2/dataset-cornell-old-lenght10-filter0-vocabSize0.pkl 这个文件到 data/samples/

    如图所示:

    5.在项目目录执行一下命令:

    python3 main.py --modelTag pretrainedv2 --test interactive
    

    程序读取了预训练的模型之后,如图:

    聊天机器人资源合集

    项目,语聊,论文,教程 https://github.com/fendouai/Awesome-Chatbot

    更多教程:

    http://www.tensorflownews.com/

    如果你想自己跑模型的话,我还有一篇评测: http://www.tensorflownews.com/2017/09/02/my-tensorflow-implementation-of-a-neural-conversational-model-a-deep-learning-based-chatbot/

    9 条回复    2017-09-07 14:10:13 +08:00
    myself659410
        1
    myself659410  
       2017-09-05 15:17:27 +08:00
    赞!
    ballshapesdsd
        2
    ballshapesdsd  
       2017-09-05 15:20:01 +08:00
    感觉对话没有逻辑
    fendouai_com
        3
    fendouai_com  
    OP
       2017-09-05 15:23:28 +08:00
    @ballshapesdsd 基于神经网络的聊天机器人现在的表现都不能算完美。
    EPr2hh6LADQWqRVH
        4
    EPr2hh6LADQWqRVH  
       2017-09-05 15:24:03 +08:00
    蠢哭
    fendouai_com
        5
    fendouai_com  
    OP
       2017-09-05 15:49:19 +08:00
    @avastms 尴聊
    xiaoyao9933
        6
    xiaoyao9933  
       2017-09-05 16:05:02 +08:00
    人工智障既视感。。。感觉不比早些年基于贝叶斯估计的统计模型好到哪去。
    fendouai_com
        7
    fendouai_com  
    OP
       2017-09-05 16:16:09 +08:00
    @xiaoyao9933 是的,基于 seq2seq 的没有哪一个很完美。还没有相似匹配之类的算法表现好,不过感觉是趋势。
    Qiss
        8
    Qiss  
       2017-09-07 12:04:49 +08:00
    机器人只会英语?
    fendouai_com
        9
    fendouai_com  
    OP
       2017-09-07 14:10:13 +08:00
    @Qiss 这个机器人只会英文,因为没有中文数据给它。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3182 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 14:36 · PVG 22:36 · LAX 07:36 · JFK 10:36
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.