代码拉取完成,页面将自动刷新
下载chinese-bert_chinese_wwm_pytorch模型,并将其解压到../../models/
data目录下文件改名(否则transformers无法正确加载模型):
bert_config.json 改名为 config.json
chinese_wwm_pytorch.bin 改名为 pytorch_model.bin
data目录下文件移动至上一级目录
修改配置文件config/duee_role_label_config_bert.json
config/duee_trigger_label_config_bert.json中的origin_data_dir
执行 duee_process.py 中的 data_preprocess方法
python duee.py --config config/duee_trigger_label_config_bert.json --task trigger_label
python duee.py --config config/duee_role_label_config_bert.json --task role_label
不修改配置的话,模型结果保存在out_put目录下
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。