ShaoaAllen

Results 7 comments of ShaoaAllen

我用这两句代码将albert引入: tokenizer = AlbertTokenizer.from_pretrained('albert-base-v2', do_lower_case=True) BERT_MODEL = AlbertModel.from_pretrained('albert-base-v2') 然后报了这个错误: File "train.py", line 179, in main cache_dir=PYTORCH_PRETRAINED_BERT_CACHE / 'distributed_{}'.format(-1)) File "/home/shao/anaconda3/envs/cogqa/lib/python3.6/site-packages/pytorch_pretrained_bert/modeling.py", line 566, in from_pretrained resolved_archive_file = cached_path(archive_file, cache_dir=cache_dir) File "/home/shao/anaconda3/envs/cogqa/lib/python3.6/site-packages/pytorch_pretrained_bert/file_utils.py",...

自己来回答下吧!这个问题算是有些眉目了!初步推测问题出在from pytorch_pretrained_bert.modeling import ( BertPreTrainedModel as PreTrainedBertModel, # The name was changed in the new versions of pytorch_pretrained_bert这句代码上,我尝试把as PreTrainedBertModel删了,然后BertForMultiHopQuestionAnswering(BertPreTrainedModel)再改下。 我猜测是BertPreTrainedModel这个类名字变化引起model1没有加载到

你好,我也是和你同样的问题,请问怎么解决呢

> 链接:https://pan.baidu.com/s/15PhGPdNSbU-ZyhCIfY40JQ 提取码:kv4n 复制这段内容后打开百度网盘手机App,操作更方便哦 您的数据已查收,非常感谢!但是建立关系的时候报错了,请问可以把您neo4j已经建好节点关系的数据导出发我一下吗?万分感谢!