学习笔记(16)- InsuranceQA_zh
2024-09-06 22:51:02
仓库地址: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 &
时间比较长,所以后台运行了。
最新文章
- OpenSceneGraph 编译 error LNK2019:unresolved external symbol 错误
- react+react-router+webpack+express+nodejs
- oracle 之 游标
- Asp程序的IIS发布
- 一塔湖图(codevs 1024)
- POJ 1573 Robot Motion 模拟 难度:0
- 导出api文档
- SNMP SNMP协议
- Javascript 计算分页
- Java设计模式——Observer(观察者)模式
- 安装IntelliJ IDEA JetGroovy(转)
- C语言之函数的介绍
- ZOJ 1025 Wooden Sticks
- SMTP错误码建议解决方法
- vue中的axios封装
- 常见排序算法整理(python实现 持续更新)
- 敏感词汇过滤DFA算法
- java----String解析
- 前端学习 -- Css -- 字体
- 用Python中的tkinter模块作图(续)