Traceback (most recent call last):


 "run.py", line 52, in <module>

train(config, model, train_iter, dev_iter, test_iter)


 "D:\TEMPP\Chinese-Text-Classification-Pytorch\train_eval.py", line 44, in train


for i, (trains, labels) in enumerate(train_iter):


 "D:\TEMPP\Chinese-Text-Classification-Pytorch\utils.py", line 103, in __next__


batches = self._to_tensor(batches)


 "D:\TEMPP\Chinese-Text-Classification-Pytorch\utils.py", line 83, in _to_tensor


x = torch.LongTensor([_[0] for _ in datas]).to(self.device)
TypeError: an integer is required (got type NoneType)

Traceback (most recent call last):


 "py.py", line 53, in <module>

print([dd.read_json(data_object.get()['Body'].read(), lines=True, convert_dates=False) for data_object in
data_objects])


 "py.py", line 53, in <listcomp>

print([dd.read_json(data_object.get()['Body'].read(), lines=True, convert_dates=False) for data_object in
data_objects])


 "/usr/local/lib/python3.6/site-packages/dask/dataframe/io/json.py", line 207, in read_json

**storage_options


 "/usr/local/lib/python3.6/site-packages/fsspec/core.py", line 205, in open_files

protocol=protocol,


 "/usr/local/lib/python3.6/site-packages/fsspec/core.py", line 408, in get_fs_token_paths

raise TypeError("url type not understood: %s" % urlpath)
TypeError: url type not understood:
