You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
百思不得其解,求大神帮忙解答,我电脑是win10,python3.6。运行您的程序一直会报这样的错:
Traceback (most recent call last):
File "E:/software/code/sentimentanalysis/text-classification/text-cnn/train.py", line 107, in
train(args)
File "E:/software/code/sentimentanalysis/text-classification/text-cnn/train.py", line 31, in train
train_iter, dev_iter = data_processor.load_data(args) # 将数据分为训练集和验证集
File "E:\software\code\sentimentanalysis\text-classification\text-cnn\data_processor.py", line 40, in load_data
fields=[('index', None), ('label', label), ('text', text)],
File "C:\Users\Administrator\Anaconda3\lib\site-packages\torchtext\data\dataset.py", line 78, in splits
os.path.join(path, train), **kwargs)
File "C:\Users\Administrator\Anaconda3\lib\site-packages\torchtext\data\dataset.py", line 269, in init
next(reader)
File "C:\Users\Administrator\Anaconda3\lib\site-packages\torchtext\utils.py", line 130, in unicode_csv_reader
csv.field_size_limit(sys.maxsize)
OverflowError: Python int too large to convert to C long
The text was updated successfully, but these errors were encountered:
百思不得其解,求大神帮忙解答,我电脑是win10,python3.6。运行您的程序一直会报这样的错:
Traceback (most recent call last):
File "E:/software/code/sentimentanalysis/text-classification/text-cnn/train.py", line 107, in
train(args)
File "E:/software/code/sentimentanalysis/text-classification/text-cnn/train.py", line 31, in train
train_iter, dev_iter = data_processor.load_data(args) # 将数据分为训练集和验证集
File "E:\software\code\sentimentanalysis\text-classification\text-cnn\data_processor.py", line 40, in load_data
fields=[('index', None), ('label', label), ('text', text)],
File "C:\Users\Administrator\Anaconda3\lib\site-packages\torchtext\data\dataset.py", line 78, in splits
os.path.join(path, train), **kwargs)
File "C:\Users\Administrator\Anaconda3\lib\site-packages\torchtext\data\dataset.py", line 269, in init
next(reader)
File "C:\Users\Administrator\Anaconda3\lib\site-packages\torchtext\utils.py", line 130, in unicode_csv_reader
csv.field_size_limit(sys.maxsize)
OverflowError: Python int too large to convert to C long
The text was updated successfully, but these errors were encountered: