学习笔记(16)- InsuranceQA_zh

仓库地址: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 &
时间比较长,所以后台运行了。

posted on 2020-02-05 20:42  宋岳庭  阅读(394)  评论(0编辑  收藏  举报