模型加载错误,显示connection错误

ner = hanlp.load(hanlp.pretrained.ner.MSRA_NER_ELECTRA_SMALL_ZH)
Downloading https://file.hankcs.com/hanlp/ner/msra_ner_electra_small_20220215_205503.zip to /Users/jiawei/.hanlp/ner/msra_ner_electra_small_20220215_205503.zip
Download failed due to ConnectionError(MaxRetryError(“HTTPConnectionPool(host=‘download.hanlp.com’, port=80): Max retries exceeded with url: /ner/msra_ner_electra_small_20220215_205503.zip (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x7fbff0dd6090>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known’))”)).
Please re-try or download it to /Users/jiawei/.hanlp/ner/msra_ner_electra_small_20220215_205503.zip by yourself with:

wget https://file.hankcs.com/hanlp/ner/msra_ner_electra_small_20220215_205503.zip -O /Users/jiawei/.hanlp/ner/msra_ner_electra_small_20220215_205503.zip

See also Install — HanLP Documentation for instructions.

DNS服务商的锅,已经解决,请重试。