Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OverflowError: Python int too large to convert to C long #1

Open
ZZZMiya opened this issue Sep 3, 2019 · 0 comments
Open

OverflowError: Python int too large to convert to C long #1

ZZZMiya opened this issue Sep 3, 2019 · 0 comments

Comments

@ZZZMiya
Copy link

ZZZMiya commented Sep 3, 2019

百思不得其解,求大神帮忙解答,我电脑是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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant