Hanlard / Transformer-based-pretrained-model-for-event-extraction

使用基于Transformer的预训练模型在ACE2005数据集上进行事件抽取任务
158 stars 25 forks source link

Transformer-based-pretrained-model-for-event-extraction/migration_model/train.py报错 #13

Open liqinga opened 1 year ago

liqinga commented 1 year ago

Traceback (most recent call last): File "/Users//NLP/Transformer-based-pretrained-model-for-event-extraction/migration_model/train.py", line 13, in from model import Net File "/Users//NLP/Transformer-based-pretrained-model-for-event-extraction/migration_model/model.py", line 16, in from DataLoadAndTrain import idx2trigger, argument2idx File "/Users//NLP/Transformer-based-pretrained-model-for-event-extraction/migration_model/DataLoadAndTrain.py", line 12, in from model import Net ImportError: cannot import name 'Net' 这写的也没问题啊,怎么会报错呢??

wangbofan commented 1 year ago

将你的主文件设置为source file试试