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
File "D:/Pycharmprojects/BERT-NER-Pytorch/run_ner_crf.py", line 496, in
main()
File "D:/Pycharmprojects/BERT-NER-Pytorch/run_ner_crf.py", line 437, in main
global_step, tr_loss = train(args, train_dataset, model, tokenizer)
File "D:/Pycharmprojects/BERT-NER-Pytorch/run_ner_crf.py", line 34, in train
train_sampler = RandomSampler(train_dataset) if args.local_rank == -1 else DistributedSampler(train_dataset)
File "D:\anaconda3\envs\pytorch\lib\site-packages\torch\utils\data\sampler.py", line 107, in init
raise ValueError("num_samples should be a positive integer "
ValueError: num_samples should be a positive integer value, but got num_samples=0
Process finished with exit code 1
The text was updated successfully, but these errors were encountered:
File "D:/Pycharmprojects/BERT-NER-Pytorch/run_ner_crf.py", line 496, in
main()
File "D:/Pycharmprojects/BERT-NER-Pytorch/run_ner_crf.py", line 437, in main
global_step, tr_loss = train(args, train_dataset, model, tokenizer)
File "D:/Pycharmprojects/BERT-NER-Pytorch/run_ner_crf.py", line 34, in train
train_sampler = RandomSampler(train_dataset) if args.local_rank == -1 else DistributedSampler(train_dataset)
File "D:\anaconda3\envs\pytorch\lib\site-packages\torch\utils\data\sampler.py", line 107, in init
raise ValueError("num_samples should be a positive integer "
ValueError: num_samples should be a positive integer value, but got num_samples=0
Process finished with exit code 1
The text was updated successfully, but these errors were encountered: