zhoujx4 / DuEE

百度2021年语言与智能技术竞赛多形态信息抽取赛道事件抽取部分torch版baseline
72 stars 11 forks source link

运行duee predict_cls出现的问题 #4

Closed bixingjian closed 3 years ago

bixingjian commented 3 years ago

运行:

CUDA_VISIBLE_DEVICES=2 python predict_cls.py --dataset=DuEE-Fin --event_type=enum -- max_len=256 --per_gpu_eval_batch_size=32 --model_name_or_path=/home/user/pretrained-model/chinese-roberta-wwm-ext-large --fine_tunning_model_path=./output/DuEE-Fin/enum/best_model.pkl --test_json=./data/DuEE-Fin/sentence/test.json

报错: predict_cls.py: error: the following arguments are required: --fine_tunning_model_path, --test_json

zhoujx4 commented 3 years ago

你好,你这个问题应该是参数的格式问题,而不是代码问题 ------------------ 原始邮件 ------------------ 发件人: "zhoujx4/DuEE" @.>; 发送时间: 2021年5月16日(星期天) 中午11:51 @.>; @.***>; 主题: [zhoujx4/DuEE] 运行duee predict_cls出现的问题 (#4)

运行: CUDA_VISIBLE_DEVICES=2 python predict_cls.py --dataset=DuEE-Fin --event_type=enum -- max_len=256 --per_gpu_eval_batch_size=32 --model_name_or_path=/home/user/pretrained-model/chinese-roberta-wwm-ext-large --fine_tunning_model_path=./output/DuEE-Fin/enum/best_model.pkl --test_json=./data/DuEE-Fin/sentence/test.json

报错: predict_cls.py: error: the following arguments are required: --fine_tunning_model_path, --test_json

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.