Closed landseer-ge closed 1 year ago
OS: Linux-4.15.0-142-generic-x86_64-with-glibc2.17
Python: 3.8.17
PyTorch: 2.0.1+cu117
HanLP: 2.1.0-beta.50
Traceback (most recent call last):
File "han.py", line 6, in
在.hanlp/tok/安装网上下载的包也还是不能跑通
??? 什么网?
rm -rf ~/.hanlp
然后重试下载。
Describe the bug A clear and concise description of what the bug is. hanlp.load(hanlp.pretrained.pos.CTB9_POS_ELECTRA_SMALL)报错,说load_from_meta_file raise e from None,等于是load()函数下载的东西有问题,在zipfile解压的时候说不是zip文件。
Code to reproduce the issue Provide a reproducible test case that is the bare minimum necessary to generate the problem.hanlp.load(hanlp.pretrained.pos.CTB9_POS_ELECTRA_SMALL)
Describe the current behavior A clear and concise description of what happened.在.hanlp/tok/安装网上下载的包也还是不能跑通
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.