builtins.PermissionError: [Errno 13] Permission denied
❓ Questions and Help
Description
TEXT=torchtext.data.Field(lower=True)
train,test=torchtext.data.TabularDataset(path='data',train='train.csv',test='test.csv',format='csv',skip_header=True,fields=[('id',None),('keyword',None),('location',None),('text',TEXT),('target',None)])
error:
Traceback (most recent call last):
File "F:/TF and Torch/kaggle2/kaggle2.py", line 16, in
@mttk Any ideas?
@mttk Any ideas?
Do you have any basic courses? I don't quite understand
You can take a look at two tutorials: https://pytorch.org/tutorials/beginner/torchtext_translation_tutorial.html https://pytorch.org/tutorials/beginner/text_sentiment_ngrams_tutorial.html
@LiangTiger How did you solve thus problem? Thanks
.data directory is created to save the downloaded data file. Please make sure you have the access to the directory or even the permission to create the folder.
You may want to use torchtext.data.TabularDataset.splits instead of torchtext.data.TabularDataset.