CompareNet_FakeNewsDetection icon indicating copy to clipboard operation
CompareNet_FakeNewsDetection copied to clipboard

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

Open wenjtop opened this issue 3 years ago • 1 comments

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 `

wenjtop avatar Dec 30 '21 16:12 wenjtop

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

Xiang-Pan avatar Feb 08 '22 18:02 Xiang-Pan