-
Notifications
You must be signed in to change notification settings - Fork 433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unidic 国内无法下载? #62
Comments
确实需要梯子才行 |
这个库是必须的还是可以忽略此下载? |
用梯子下载好zip然后如何安装呢?远程服务器没法用命令 |
我也想问qwq,大家都是怎么安装的 |
我解决了 |
请教一下怎么解决的呢? |
首先你需要pip install unidec 但是因为网络问题,这个程序还要下载亚马逊和huggingface里的配置文件和模型,我尝试过手动导入,但是我代码基础差看不懂,所以还是运行不了,你们如果解决了麻烦告诉我!!提前说声感谢 |
要是需要我提供文件夹请@我 |
感谢!我去试一下,感谢分享,有进展继续交流! |
呃,我已经全部解决了! |
Try this in windows cmd
Try this in bash
|
Yeah! It works! |
怎么解决的呀 |
1, manaul download the unidic.zip from https://cotonoha-dic.s3-ap-northeast-1.amazonaws.com/unidic-3.1.0.zip, |
Yes,it works! |
It works and help a lot |
unidic的下载你可以参考morganwang010的方法,我试过是可行的 |
好的好的,我已经解决了,谢谢你啦
zhangguangxun ***@***.***> 于2024年4月20日周六 17:35写道:
… 呃,我已经全部解决了!
怎么解决的呀
unidic的下载你可以参考morganwang010 <https://github.com/morganwang010>的方法,我试过是可行的
hugging face上的模型下载你可以考虑切换镜像源下载
参考配置代码pip install -U huggingface_hub export HF_ENDPOINT=
https://hf-mirror.com
nltk的下载问题可以参考知乎文章:https://zhuanlan.zhihu.com/p/347931749
我通过上述方法调通了
—
Reply to this email directly, view it on GitHub
<#62 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BG3L4EBUU7EMXAFWPP6AAZ3Y6IZGFAVCNFSM6AAAAABERPOI4CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRXGYYTQMZTG4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
这个可以解决python -m unidic download网络错误问题, |
厉害! |
download url: https://cotonoha-dic.s3-ap-northeast-1.amazonaws.com/unidic-3.1.0.zip 国内无法访问,请教下如何解决?
RUN python3 -m unidic download:
2.445 Downloading UniDic v3.1.0+2021-08-31...
2.506 download url: https://cotonoha-dic.s3-ap-northeast-1.amazonaws.com/unidic-3.1.0.zip
2.506 Dictionary version: 3.1.0+2021-08-31
unidic-3.1.0.zip: 0.00B [00:00, ?B/s]
2.866 Traceback (most recent call last):
2.866 File "/usr/local/lib/python3.9/urllib/request.py", line 1346, in do_open
2.900 h.request(req.get_method(), req.selector, req.data, headers,
2.900 File "/usr/local/lib/python3.9/http/client.py", line 1285, in request
2.934 self._send_request(method, url, body, headers, encode_chunked)
2.934 File "/usr/local/lib/python3.9/http/client.py", line 1331, in _send_request
2.934 self.endheaders(body, encode_chunked=encode_chunked)
2.934 File "/usr/local/lib/python3.9/http/client.py", line 1280, in endheaders
2.934 self._send_output(message_body, encode_chunked=encode_chunked)
2.934 File "/usr/local/lib/python3.9/http/client.py", line 1040, in _send_output
2.935 self.send(msg)
2.935 File "/usr/local/lib/python3.9/http/client.py", line 980, in send
2.935 self.connect()
2.935 File "/usr/local/lib/python3.9/http/client.py", line 1454, in connect
2.936 self.sock = self._context.wrap_socket(self.sock,
2.936 File "/usr/local/lib/python3.9/ssl.py", line 500, in wrap_socket
2.936 return self.sslsocket_class._create(
2.936 File "/usr/local/lib/python3.9/ssl.py", line 1040, in _create
2.937 self.do_handshake()
2.937 File "/usr/local/lib/python3.9/ssl.py", line 1309, in do_handshake
2.937 self._sslobj.do_handshake()
2.937 ConnectionResetError: [Errno 104] Connection reset by peer
The text was updated successfully, but these errors were encountered: