GLRE
GLRE copied to clipboard
Global-to-Local Neural Networks for Document-Level Relation Extraction, EMNLP 2020
 在执行这个文件的时候,denom = torch.sparse.sum(adj[batch, i], dim=1).to_dense()这一句代码报错。 RuntimeError: sparse tensors do not have strides是什么原因呢?需要怎样进行修改?谢谢
关于数据预处理
您好,数据处理时,发现了报错,是缺少文件,我看了在data_processing/tools.py给出的路径中GLRE-master\data_processing\common\geniass的确是缺少了一个文件,可是文件里是什么呢? 错误如下: Traceback (most recent call last): File "process.py", line 118, in main() File "process.py", line 57, in main split_sents = sentence_split_genia(orig_sentences) File "/mnt/d/code/GLRE-master/data_processing/tools.py", line 244, in sentence_split_genia with open('temp_file.split.txt',...