DreamInvoker / GAIN

Source code for EMNLP 2020 paper: Double Graph Based Reasoning for Document-level Relation Extraction
MIT License
142 stars 31 forks source link

文档的最大长度设置为512,在使用自己的数据集时长度超过会报错,应该修改哪些地方? #15

Closed baozi-lala closed 3 years ago

baozi-lala commented 3 years ago

调大document_max_length=1500仍然报错:RuntimeError: The size of tensor a (512) must match the size of tensor b (1500) at non-singleton dimension 0

DreamInvoker commented 3 years ago

您好,感谢对我们工作的关注!

GloVe 需改的地方: line1 line2

BERT需要改的地方: line1 line2 line3

不过BERT版本暂不支持大于512的输入。