خطا برطرف شد.
ممنون از شما
با خطای زیر مواجه شدم:
C:\Users\Azadeh\Desktop\finetune-transformer-lm-master>python train.py --dataset rocstories --desc rocstories --submit --analysis --data_dir data
Namespace(afn='gelu', analysis=True, attn_pdrop=0.1, b1=0.9, b2=0.999, bpe_path='model/vocab_40000.bpe', clf_pdrop=0.1, data_dir='data', dataset='rocstories', desc='rocstories', e=1e-08, embd_pdrop=0.1, encoder_path='model/encoder_bpe_40000.json', l2=0.01, lm_coef=0.5, log_dir='log/', lr=6.25e-05, lr_schedule='warmup_linear', lr_warmup=0.002, max_grad_norm=1, n_batch=8, n_ctx=512, n_embd=768, n_gpu=4, n_head=12, n_iter=3, n_layer=12, n_transfer=12, opt='adam', resid_pdrop=0.1, save_dir='save/', seed=42, submission_dir='submission/', submit=True, vector_l2=False)
Traceback (most recent call last):
File "train.py", line 370, in <module>
(trX1, trX2, trX3, trY), (vaX1, vaX2, vaX3, vaY), (teX1, teX2, teX3) = encode_dataset(rocstories(data_dir), encoder=text_encoder)
File "C:\Users\Azadeh\Desktop\finetune-transformer-lm-master\datasets.py", line 32, in rocstories
teX1, teX2, teX3, _ = _rocstories(os.path.join(data_dir, 'cloze_test_test__spring2016 - cloze_test_ALL_test.csv'))
File "C:\Users\Azadeh\Desktop\finetune-transformer-lm-master\datasets.py", line 13, in _rocstories
with open(path) as f:
FileNotFoundError: [Errno 2] No such file or directory: 'data\\cloze_test_test__spring2016 - cloze_test_ALL_test.csv'
من فایل داده را دانلود کردم و در مسیر پوشه کد قرار دادم.آیا باید مسیر دیگری بدهم؟