Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
models
提交
afa392c1
M
models
项目概览
PaddlePaddle
/
models
大约 1 年 前同步成功
通知
222
Star
6828
Fork
2962
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
602
列表
看板
标记
里程碑
合并请求
255
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
models
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
602
Issue
602
列表
看板
标记
里程碑
合并请求
255
合并请求
255
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
afa392c1
编写于
2月 13, 2020
作者:
K
kgresearch
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify predict.sh, train.sh
上级
a6bd3558
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
7 addition
and
4 deletion
+7
-4
PaddleKG/DuIE_Baseline/script/predict.sh
PaddleKG/DuIE_Baseline/script/predict.sh
+3
-2
PaddleKG/DuIE_Baseline/script/train.sh
PaddleKG/DuIE_Baseline/script/train.sh
+4
-2
未找到文件。
PaddleKG/DuIE_Baseline/script/predict.sh
浏览文件 @
afa392c1
set
-eux
set
-eux
export
TASK_DATA_PATH
=
./data/
export
TASK_DATA_PATH
=
./data/
export
DEV_FILE
=
dev.json
export
MODEL_PATH
=
./pretrained_model/
export
MODEL_PATH
=
./pretrained_model/
export
CHECKPOINT
=
./checkpoints/step_60000/
export
CHECKPOINT
=
./checkpoints/step_60000/
export
TEST_SAVE
=
./data/
export
TEST_SAVE
=
./data/
...
@@ -17,8 +18,8 @@ CUDA_VISIBLE_DEVICES=7 python -u ./ernie/run_duie.py \
...
@@ -17,8 +18,8 @@ CUDA_VISIBLE_DEVICES=7 python -u ./ernie/run_duie.py \
--num_labels
112
\
--num_labels
112
\
--label_map_config
${
TASK_DATA_PATH
}
relation2label.json
\
--label_map_config
${
TASK_DATA_PATH
}
relation2label.json
\
--spo_label_map_config
${
TASK_DATA_PATH
}
label2relation.json
\
--spo_label_map_config
${
TASK_DATA_PATH
}
label2relation.json
\
--test_set
${
TASK_DATA_PATH
}
dev_demo.json
\
--test_set
${
TASK_DATA_PATH
}
${
DEV_FILE
}
\
--test_save
${
TEST_SAVE
}
predict_
test
.json
\
--test_save
${
TEST_SAVE
}
predict_
dev
.json
\
--vocab_path
${
MODEL_PATH
}
vocab.txt
\
--vocab_path
${
MODEL_PATH
}
vocab.txt
\
--ernie_config_path
${
MODEL_PATH
}
ernie_config.json
\
--ernie_config_path
${
MODEL_PATH
}
ernie_config.json
\
--use_fp16
false
\
--use_fp16
false
\
...
...
PaddleKG/DuIE_Baseline/script/train.sh
浏览文件 @
afa392c1
...
@@ -8,6 +8,8 @@ export SAVE_STEPS=5000
...
@@ -8,6 +8,8 @@ export SAVE_STEPS=5000
export
SAVE_PATH
=
./
export
SAVE_PATH
=
./
export
TASK_DATA_PATH
=
./data/
export
TASK_DATA_PATH
=
./data/
export
MODEL_PATH
=
./pretrained_model/
export
MODEL_PATH
=
./pretrained_model/
export
TRAIN_FILE
=
train.json
export
DEV_FILE
=
dev.json
export
FLAGS_sync_nccl_allreduce
=
1
export
FLAGS_sync_nccl_allreduce
=
1
export
PYTHONPATH
=
./ernie:
${
PYTHONPATH
:-}
export
PYTHONPATH
=
./ernie:
${
PYTHONPATH
:-}
...
@@ -23,8 +25,8 @@ CUDA_VISIBLE_DEVICES=7 python -u ./ernie/run_duie.py \
...
@@ -23,8 +25,8 @@ CUDA_VISIBLE_DEVICES=7 python -u ./ernie/run_duie.py \
--chunk_scheme
"IOB"
\
--chunk_scheme
"IOB"
\
--label_map_config
${
TASK_DATA_PATH
}
relation2label.json
\
--label_map_config
${
TASK_DATA_PATH
}
relation2label.json
\
--spo_label_map_config
${
TASK_DATA_PATH
}
label2relation.json
\
--spo_label_map_config
${
TASK_DATA_PATH
}
label2relation.json
\
--train_set
${
TASK_DATA_PATH
}
train_demo.json
\
--train_set
${
TASK_DATA_PATH
}
${
TRAIN_FILE
}
\
--dev_set
${
TASK_DATA_PATH
}
dev_demo.json
\
--dev_set
${
TASK_DATA_PATH
}
${
DEV_FILE
}
\
--vocab_path
${
MODEL_PATH
}
vocab.txt
\
--vocab_path
${
MODEL_PATH
}
vocab.txt
\
--ernie_config_path
${
MODEL_PATH
}
ernie_config.json
\
--ernie_config_path
${
MODEL_PATH
}
ernie_config.json
\
--checkpoints
${
SAVE_PATH
}
checkpoints
\
--checkpoints
${
SAVE_PATH
}
checkpoints
\
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录