hy-struggle / PRGC

PRGC: Potential Relation and Global Correspondence Based Joint Relational Triple Extraction
107 stars 16 forks source link

model 的evaluate中argument命令缺失问题 #10

Open jielunzhou18754 opened 2 years ago

jielunzhou18754 commented 2 years ago

您好,打扰您了我在使用您的模型训练NYT数据集在训练完之后想使用evaluate.py评估一下模型效果,结果evaluate.sh中--mode没有在evaluate.py中定义报错 evaluate.py: error: unrecognized arguments: --mode=test 以及 Traceback (most recent call last): File "/root/PRGC-main/evaluate.py", line 142, in 'corres_threshold': args.mat_threshold, AttributeError: 'Namespace' object has no attribute 'mat_threshold'请问您可以给说一下解决思路吗?万分感谢

suexin27 commented 2 years ago

您好,我也遇到了这个 error: unrecognized arguments: --mode=test,请问您解决了吗?感谢

18438602970 commented 2 years ago

您好,我也遇到了这个 error: unrecognized arguments: --mode=test,请问您解决了吗?感谢

我在前面加了个parser.add_argument('--mode', type=str, default="test", help="xxxx") 这串字典要保持一致:ex_params = { 'corres_threshold': args.corres_threshold, 'rel_threshold': args.rel_threshold, 'ensure_corres': args.ensure_corres, 'ensure_rel': args.ensure_rel, 'emb_fusion': args.emb_fusion }

yxy0102 commented 1 year ago

现在有更好的方法了吗