加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
run.sh 745 Bytes
一键复制 编辑 原始数据 按行查看 历史
gggggxz 提交于 2020-05-16 17:41 . fix evaluation function error
#!/bin/sh
if [ "$1" = "train" ]
then
python run.py train ./data/train.txt ./vocab/sent_vocab.json ./vocab/tag_vocab.json --cuda
elif [ "$1" = "train-without-cuda" ]
then
python run.py train ./data/train.txt ./vocab/sent_vocab.json ./vocab/tag_vocab.json
elif [ "$1" = "test" ]
then
python run.py test ./data/test.txt ./result.txt ./vocab/sent_vocab.json ./vocab/tag_vocab.json ./model/model.pth --cuda
perl conlleval.pl < result.txt
elif [ "$1" = "test-without-cuda" ]
then
python run.py test ./data/test.txt ./result.txt ./vocab/sent_vocab.json ./vocab/tag_vocab.json ./model/model.pth
perl conlleval.pl < result.txt
elif [ "$1" = "vocab" ]
then
python vocab.py ./data/train.txt ./vocab/sent_vocab.json ./vocab/tag_vocab.json
fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化