Traceback (most recent call last):


 "<input>", line 1, in <module>


 "/Users/netp/anaconda3/envs/graphnn/lib/python3.8/site-packages/torch_geometric/utils/convert.py", line 137, in from_networkx

data = torch_geometric.data.Data.from_dict(data)


 "/Users/netp/anaconda3/envs/graphnn/lib/python3.8/site-packages/torch_geometric/data/data.py", line 105, in from_dict

data[key] = item


 "/Users/netp/anaconda3/envs/graphnn/lib/python3.8/site-packages/torch_geometric/data/data.py", line 118, in __setitem__

setattr(self, key, value)
TypeError: attribute name must be string, not 'int'

Traceback (most recent call last):


 "block_classification.py", line 51, in <module>

corpus = NLPTaskDataFetcher.load_classification_corpus(Path('./'), test_file='test.csv', dev_file='dev.csv', train_file='train.csv')


 "/home/user/.conda/envs/keras/lib/python3.6/site-packages/deprecated/classic.py", line 233, in wrapper_function

return wrapped_(*args_, **kwargs_)


 "/home/user/.conda/envs/keras/lib/python3.6/site-packages/flair/data_fetcher.py", line 452, in load_classification_corpus

train_file, tokenizer=tokenizer, max_tokens_per_doc=max_tokens_per_doc


 "/home/user/.conda/envs/keras/lib/python3.6/site-packages/deprecated/classic.py", line 233, in wrapper_function

return wrapped_(*args_, **kwargs_)


 "/home/user/.conda/envs/keras/lib/python3.6/site-packages/flair/data_fetcher.py", line 513, in read_text_classification_file

sentence = Sentence(text, labels=labels, use_tokenizer=tokenizer)
TypeError: __init__() got an unexpected keyword argument 'labels'
