理論上可以通過 Python 下載節的模型,如下所示(mirror):import stanzastanza.download('en') # This downloads the English models for the neural pipeline但是,無法從我的計算機訪問斯坦福服務器:(neural-parser2) dernoncourt@ilcompn0:~/temp/stanza$ pythonPython 3.6.7 (default, Oct 25 2018, 09:16:13)[GCC 5.4.0 20160609] on linuxType "help", "copyright", "credits" or "license" for more information.>>> import stanza>>> stanza.download('en')Downloading https://raw.githubusercontent.com/stanfordnlp/stanza-resources/master/resources_1.0.0.json: 115kB [00:00, 24.5MB/s]2020-07-07 21:08:34 INFO: Downloading default packages for language: en (English)...Traceback (most recent call last): File "/mnt/ilcodisk1/user/dernoncourt/pyenv/neural-parser2/lib/python3.6/site-packages/urllib3/connection.py", line 160, in _new_conn (self._dns_host, self.port), self.timeout, **extra_kw File "/mnt/ilcodisk1/user/dernoncourt/pyenv/neural-parser2/lib/python3.6/site-packages/urllib3/util/connection.py", line 84, in create_connection raise err File "/mnt/ilcodisk1/user/dernoncourt/pyenv/neural-parser2/lib/python3.6/site-packages/urllib3/util/connection.py", line 74, in create_connection sock.connect(sa)TimeoutError: [Errno 110] Connection timed outDuring handling of the above exception, another exception occurred:Traceback (most recent call last): File "/mnt/ilcodisk1/user/dernoncourt/pyenv/neural-parser2/lib/python3.6/site-packages/urllib3/connectionpool.py", line 677, in urlopen chunked=chunked, File "/mnt/ilcodisk1/user/dernoncourt/pyenv/neural-parser2/lib/python3.6/site-packages/urllib3/connectionpool.py", line 392, in _make_request conn.request(method, url, **httplib_request_kw)如何手動下載節的模型?我希望節的模型存儲在多個服務器中。我用stanza==1.0.1。
1 回答

肥皂起泡泡
TA貢獻1829條經驗 獲得超6個贊
我在 Twitter 上查看了斯坦福 NLP 小組,他們確認斯坦福 NLP 網站 ( https://nlp.stanford.edu/ ) 今天(7 月 8 日)由于斯坦福級數據中心的重組而關閉。他們明天(7 月 9 日)會回來,然后您的腳本應該會再次運行。
他們現在還在 Twitter 上發布了這個:
https://twitter.com/stanfordnlp/status/1280917602718461952?s=20
添加回答
舉報
0/150
提交
取消