![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
代码报错
那年夏天那缕光
这个作者很懒,什么都没留下…
展开
-
完美解决:AttributeError: ‘NoneType‘ object has no attribute ‘group‘
完美解决:AttributeError: 'NoneType' object has no attribute 'group'原创 2023-11-07 10:11:36 · 1139 阅读 · 0 评论 -
完美解决:Failed to connect to huggingface.co port 443 after 75018 ms Operation timed out
完美解决:Failed to connect to huggingface.co port 443 after 75018 ms: Operation timed out原创 2023-09-28 13:35:51 · 23479 阅读 · 22 评论 -
【完美解决:openai.error.APIConnectionError: Error communicating with OpenAI:】
完美解决:openai.error.APIConnectionError: Error communicating with OpenAI: HTTPSConnectionPool(host='api.openai.com', port=443)原创 2023-11-01 16:51:04 · 9540 阅读 · 21 评论 -
已解决:KeyError ‘attention_mask‘
已解决:KeyError: ‘attention_mask’调用bert模型预训练时报错KeyError: ‘attention_mask’已知是transformers与tokenizers的版本号不匹配,导致attention_mask丢失可使用 pip show 包查看对应版本号Name: transformersVersion: 2.8.0Summary: State-of-the-art Natural Language Processing for TensorFlow 2.0 a原创 2022-04-01 17:44:26 · 2902 阅读 · 0 评论 -
报错:TypeError forward() got an unexpected keyword argument
已解决:TypeError: forward() got an unexpected keyword argument报错:TypeError: forward() got an unexpected keyword argument问题一解决方案:sequence_output, pooled_output = self.bert_model(input_ids=token_ids, token_type_ids=token_type_ids, attention_mask=attention_原创 2022-04-01 17:31:34 · 19436 阅读 · 0 评论 -
成功解决:UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xb1 in position 49:
完美解决:UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xb1 in position 49: invalid continuation byte原创 2021-08-10 20:59:17 · 7508 阅读 · 2 评论