1 Star 2 Fork 1

何长鸿/duie

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
test.sh 1.10 KB
Copy Edit Raw Blame History
88153 authored 5 years ago . first commit
set -eux
export TASK_DATA_PATH=./data/
export TEST_FILE=test1.json
export MODEL_PATH=./pretrained_model/
export CHECKPOINT=./checkpoints/step_107062/
export TEST_SAVE=./data/
export FLAGS_sync_nccl_allreduce=1
export PYTHONPATH=./ernie:${PYTHONPATH:-}
python -u ./ernie/run_duie.py \
--use_cuda true \
--do_train false \
--do_val false \
--do_test true \
--batch_size 64 \
--init_checkpoint ${CHECKPOINT} \
--num_labels 112 \
--label_map_config ${TASK_DATA_PATH}relation2label.json \
--spo_label_map_config ${TASK_DATA_PATH}label2relation.json \
--test_set ${TASK_DATA_PATH}${TEST_FILE} \
--test_save ${TEST_SAVE}predict_test.json \
--vocab_path ${MODEL_PATH}vocab.txt \
--ernie_config_path ${MODEL_PATH}ernie_config.json \
--use_fp16 false \
--max_seq_len 256 \
--skip_steps 10 \
--random_seed 1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/geekhch/duie.git
git@gitee.com:geekhch/duie.git
geekhch
duie
duie
master

Search