Closed 2274900 closed 4 years ago
Thanks for reminding me as I forgot to put Ubuntu in instructions. I didn't try windows but I think it's hard. For example, bash, compiling for apex, etc.
pytorch-pretrained-bert should be 0.4. I guess you used a newer version.
I'm not sure which version of python picked the unused csv part (from original bert code) out but you can definitely remove that function.
Thanks for reminding me as I forgot to put Ubuntu in instructions. I didn't try windows but I think it's hard. For example, bash, compiling for apex, etc.
pytorch-pretrained-bert should be 0.4. I guess you used a newer version.
I'm not sure which version of python picked the unused csv part (from original bert code) out but you can definitely remove that function.
Thanks for reminding me as I forgot to put Ubuntu in instructions. I didn't try windows but I think it's hard. For example, bash, compiling for apex, etc.
pytorch-pretrained-bert should be 0.4. I guess you used a newer version.
I'm not sure which version of python picked the unused csv part (from original bert code) out but you can definitely remove that function.
thanks for your reply very much,and I‘m very sorry for the bother brought to you by my ignorance.I am a new fish of computer science,and know little about these konwledge ,but I should think of these issues were caused by the difference of library version and operating system。it’s so kind of you for your reminder.wish you have nice life.
window上调试半天运行不了,报 def test(args): # Load a trained model that you have fine-tuned (we assume evaluate on cpu) E fixture 'args' not found
我的猜测是args = parser.parse_args()中根本没有加载进去/或者这句话有问题, 这该如何解决?
此外,大佬的各种run.py文件中的 from pytorch_pretrained_bert.modeling import BertModel, PreTrainedBertModel,** BertPreTrainingHeads 报错。PreTrainedBertModel应改为BertPreTrainedModel
还有,大佬的absa_data_utils.py中没有import csv,但是直接用了csv.reader