Bert-Chinese-Text-Classification-Pytorch icon indicating copy to clipboard operation
Bert-Chinese-Text-Classification-Pytorch copied to clipboard

No module named 'pytorch_pretrained'

Open lllsssyyy0610 opened this issue 4 years ago • 1 comments

请问我在运行程序时 from pytorch_pretrained import BertModel, BertTokenizer 这一行代码报错 提示No module named 'pytorch_pretrained' 是什么问题啊

lllsssyyy0610 avatar Feb 19 '21 07:02 lllsssyyy0610

差一个库 pip install pytorch-pretrained-bert 就行

Xiangbj17 avatar May 16 '22 05:05 Xiangbj17