仓库地址:https://github.com/l11x0m7/InsuranceQA_zh

Convolutional Neural Network for Chinese InsuranceQA Corpus with TensorFlow, implementation of paper "Applying Deep Learning to Answer Selection: A Study and An Open Task"

环境

依赖python2

我在ubuntu安装了python虚拟环境。

如果没有安装,使用pip install virtualenv

创建虚机,virtualenv env

使用虚机,source env/bin/activate

安装

因为我的机器没有gpu,所以关了Requirement.txt的tensorflow-gpu

insuranceqa-data==2.2
numpy==1.13.0
scikit-learn==0.19.0
scipy==0.19.1
six==1.10.0
sklearn==0.0
#tensorflow-gpu==1.2.0
tqdm==4.14.0

执行

 pip install -r Requirements.txt

tensorflow

tensorflow单独安装。

安装的时候,换了源,速度快了很多。

pip install tensorflow==1.2 -i https://pypi.tuna.tsinghua.edu.cn/simple

数据

数据下载到目录:env/local/lib/python2.7/site-packages/insuranceqa_data/

我在自己机器已经下载了一份,所以直接拷贝过去。 下载过程见https://www.cnblogs.com/xuehuiping/p/12263334.html。按照对应目录拷贝

训练

开始训练

(env) xuehp@haomeiya002:~/git/InsuranceQA_zh$ nohup python train.py &

时间比较长,所以后台运行了。

最新文章

  1. OpenSceneGraph 编译 error LNK2019:unresolved external symbol 错误
  2. react+react-router+webpack+express+nodejs
  3. oracle 之 游标
  4. Asp程序的IIS发布
  5. 一塔湖图(codevs 1024)
  6. POJ 1573 Robot Motion 模拟 难度:0
  7. 导出api文档
  8. SNMP SNMP协议
  9. Javascript 计算分页
  10. Java设计模式——Observer(观察者)模式
  11. 安装IntelliJ IDEA JetGroovy(转)
  12. C语言之函数的介绍
  13. ZOJ 1025 Wooden Sticks
  14. SMTP错误码建议解决方法
  15. vue中的axios封装
  16. 常见排序算法整理(python实现 持续更新)
  17. 敏感词汇过滤DFA算法
  18. java----String解析
  19. 前端学习 -- Css -- 字体
  20. 用Python中的tkinter模块作图(续)

热门文章

  1. linux sftp 和scp 运用
  2. 《爬虫学习》(三)(requests库使用)
  3. 编译原理--05 用C++手撕PL/0
  4. AngularJS Learning Notes
  5. 数制的运用-CodeForces - 535B
  6. 启动ubuntu就直接进入GRUB2.02的命令行界面的问题
  7. pc和手机点击复制到剪贴板
  8. uniGUI之UniPopupMenu和右键菜单(27)
  9. HTML 入门第一课
  10. Centos 安装 mysql 5.7