BUPT-GAMMA / CompareNet_FakeNewsDetection

Compare to The Knowledge: Graph Neural Fake News Detection with External Knowledge (ACL 2021)
89 stars 35 forks source link

AssertionError: dim of adj does not match the num of sent, where the idx is 5 #7

Open wenjtop opened 2 years ago

wenjtop commented 2 years ago

Thank you for sharing your source code. I had an issue when I ran the source code. Could you please tell me what is the problem?

`Traceback (most recent call last): File "main.py", line 142, in main(params) File "main.py", line 104, in main dl = DataLoader(params) File "D:\taobao\twitter\CompareNet_FakeNewsDetection-master\CompareNet_FakeNewsDetection-master\data_loader .py", line 84, in init dataset_train = DataSet(self.train, self.adj_train, self.fea_train, self.params, self.entity_description)

File "D:\taobao\twitter\CompareNet_FakeNewsDetection-master\CompareNet_FakeNewsDetection-master\data_loader .py", line 263, in init assert a[0].shape[0] == len(self.sents[i]),\ AssertionError: dim of adj does not match the num of sent, where the idx is 5 `

Xiang-Pan commented 2 years ago

Same issue, solved by changing the NLTK to version 3.2.5 as required.