stanfordnlp / stanza

Stanford NLP Python library for tokenization, sentence segmentation, NER, and parsing of many human languages
https://stanfordnlp.github.io/stanza/
Other
7.25k stars 888 forks source link

ValueError: md5 for default.zip is b1c3930bf56f509f67af742e7f03df45, expected 4612f2b22667eb316b61f268c98592a1 #1386

Closed frankbuckley closed 5 months ago

frankbuckley commented 5 months ago

Failing to download model from https://huggingface.co/stanfordnlp/stanza-en/resolve/v1.8.0/models/default.zip

import stanza
stanza.download('en')

gives:

Downloading https://raw.githubusercontent.com/stanfordnlp/stanza-resources/main/resources_1.8.0.json: 379kB [00:00, 8.63MB/s]
2024-04-22 14:37:22 INFO: Downloaded file to C:\Users\FrankBuckley\stanza_resources\resources.json
2024-04-22 14:37:22 INFO: Downloading default packages for language: en (English) ...
Downloading https://huggingface.co/stanfordnlp/stanza-en/resolve/v1.8.0/models/default.zip: 100%|| 3.10k/3.10k [00:00<?, ?B/s]
Traceback (most recent call last):
  File "C:\Users\FrankBuckley\AppData\Local\Programs\Python\Python312\Lib\site-packages\stanza\resources\common.py", line 594, in download
    request_file(
  File "C:\Users\FrankBuckley\AppData\Local\Programs\Python\Python312\Lib\site-packages\stanza\resources\common.py", line 154, in request_file
    assert_file_exists(path, md5, alternate_md5)
  File "C:\Users\FrankBuckley\AppData\Local\Programs\Python\Python312\Lib\site-packages\stanza\resources\common.py", line 107, in assert_file_exists
    raise ValueError("md5 for %s is %s, expected %s" % (path, file_md5, md5))
ValueError: md5 for C:\Users\FrankBuckley\stanza_resources\en\default.zip is b1c3930bf56f509f67af742e7f03df45, expected 4612f2b22667eb316b61f268c98592a1

Environment (please complete the following information):

frankbuckley commented 5 months ago

...strange: appears to be working now