::: hljs-right DATE: May 26, 2024 ::: 使用textattack从hugging face下载时保存是因为国内无法正常访问hugging face,其他方法比如自己下载好数据集,传到指定目录下,我也试了,但我需要用的是glue,需要编译后使用,菜狗甚至找不到目录
raise ConnectionError(f"Couldn't reach '{path}' on the Hub ({type(e).__name__})")
ConnectionError: Couldn't reach 'ptb_text_only' on the Hub (ConnectionError)
这里的解决办法参考了: https://github.com/PaddlePaddle/PaddleNLP/issues/8109
export HF_ENDPOINT=https://hf-mirror.com