pytorch_chinese_lm_pretrain icon indicating copy to clipboard operation
pytorch_chinese_lm_pretrain copied to clipboard

预训练bert出错

Open nlpofwhat opened this issue 3 years ago • 2 comments

ValueError: num_samples should be a positive integer value, but got num_samples=0 请问下这是什么原因

nlpofwhat avatar Apr 21 '21 08:04 nlpofwhat

ValueError: num_samples should be a positive integer value, but got num_samples=0 请问下这是什么原因

把数据文件中的空行去掉,再把run_language_model_xx.py 里的line_by_line参数改为True

guoqixin1 avatar Sep 20 '21 15:09 guoqixin1

数据文件没有识别到造成的?

---原始邮件--- 发件人: @.> 发送时间: 2021年9月20日(周一) 晚上11:03 收件人: @.>; 抄送: @.***>; 主题: Re: [zhusleep/pytorch_chinese_lm_pretrain] 预训练bert出错 (#9)

ValueError: num_samples should be a positive integer value, but got num_samples=0 请问下这是什么原因

把数据文件中的空行去掉,再把run_language_model_xx.py 里的line_by_line参数改为True

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

zhusleep avatar Sep 20 '21 17:09 zhusleep