nju-websoft / GLRE

Global-to-Local Neural Networks for Document-Level Relation Extraction, EMNLP 2020
GNU General Public License v3.0
53 stars 15 forks source link

关于 python scripts/run_cdr.py #7

Open wy11002299 opened 2 years ago

wy11002299 commented 2 years ago

微信图片_20220124013615 在执行这个文件的时候,denom = torch.sparse.sum(adj[batch, i], dim=1).to_dense()这一句代码报错。 RuntimeError: sparse tensors do not have strides是什么原因呢?需要怎样进行修改?谢谢

njuxinyiwang commented 2 years ago

抱歉,我们重新下载和按顺序执行了提供的代码,并未发现这样的错误,你是否对提供的代码进行了一定的修改,或者你能提供下运行的环境吗?我们在给定的运行环境下能成功地运行。

shiqqaingzhu commented 3 months ago

FileNotFoundError: [Errno 2] No such file or directory: './data/CDR/PubMed-CDR.txt' 上述txt文件从哪里获取啊?