hankcs / HanLP

中文分词 词性标注 命名实体识别 依存句法分析 成分句法分析 语义依存分析 语义角色标注 指代消解 风格转换 语义相似度 新词发现 关键词短语提取 自动摘要 文本分类聚类 拼音简繁转换 自然语言处理
https://hanlp.hankcs.com/
Apache License 2.0
33.84k stars 10.12k forks source link

zip下载不了 #1896

Closed QLinfeng closed 5 months ago

QLinfeng commented 5 months ago

Describe the bug A clear and concise description of what the bug is. Downloading https://file.hankcs.com/hanlp/tok/fine_electra_small_20220615_231803.zip to /root/.hanlp/tok/fine_electra_small_20220615_231803.zip Download failed due to SSLError(MaxRetryError("HTTPSConnectionPool(host='file.hankcs.com', port=443): Max retries exceeded with url: /hanlp/tok/fine_electra_small_20220615_231803.zip (Caused by SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1007)')))")). Please re-try or download it to /root/.hanlp/tok/fine_electra_small_20220615_231803.zip by yourself with:

    wget https://file.hankcs.com/hanlp/tok/fine_electra_small_20220615_231803.zip -O /root/.hanlp/tok/fine_electra_small_20220615_231803.zip

Code to reproduce the issue Provide a reproducible test case that is the bare minimum necessary to generate the problem. HanLP = hanlp.pipeline() \ .append(hanlp.utils.rules.split_sentence, output_key='sentences') \ .append(hanlp.load('FINE_ELECTRA_SMALL_ZH'), output_key='tok') \ .append(hanlp.load('CTB9_POS_ELECTRA_SMALL'), output_key='pos') \ .append(hanlp.load('MSRA_NER_ELECTRA_SMALL_ZH'), output_key='ner', input_key='tok') \ .append(hanlp.load('CTB9_DEP_ELECTRA_SMALL', conll=0), output_key='dep', input_key='tok')\ .append(hanlp.load('CTB9_CON_ELECTRA_SMALL'), output_key='con', input_key='tok') HanLP('2021年HanLPv2.1为生产环境带来次世代最先进的多语种NLP技术。阿婆主来到北京立方庭参观自然语义科技公司。')

Describe the current behavior A clear and concise description of what happened. zip下载不了,在电脑上试了也不行 Expected behavior A clear and concise description of what you expected to happen.

System information

Other info / logs Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

QLinfeng commented 5 months ago

地址改了,亲测下面这个可以 https://ftp.hankcs.com/hanlp

hankcs commented 5 months ago

感谢反馈,已经修复。 如果还有问题,欢迎重开issue。