stanza
stanza copied to clipboard
[QUESTION]resources_1.x.0.json is repeatedly downloaded
Whenever stanza.download method is called, it seems that resource_1_x.0.json file is assured to exist by calling file_exists.
However, when this json file is examined, the md5 value of this file is set to be None so the file_exists method returns False everytime.

I will add a log message indicating why this is happening to the next version
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hopefully the explanation provided as part of the download will make it possible to stop any unwanted downloads. This is now the default in 1.4.1
The intent is to see if the models have been updated, which would update
the resources file first . You can stop it from trying to download by
putting a download_method=None in your Pipeline call.
On Tue, Jun 7, 2022 at 4:13 AM Crazy_diamond @.***> wrote:
Whenever stanza.download https://github.com/stanfordnlp/stanza/blob/main/stanza/resources/common.py#L514 method is called, it seems that resource_1_x.0.json file is assured to exist by calling file_exists https://github.com/stanfordnlp/stanza/blob/main/stanza/resources/common.py#L134 . However, when this json file is examined, the md5 value of this file is set to be None so that file_exists method returns False everytime. [image: image] https://user-images.githubusercontent.com/29737578/172366005-b30244b8-17b5-4bc1-9145-0f8cc048618a.png
— Reply to this email directly, view it on GitHub https://github.com/stanfordnlp/stanza/issues/1044, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA2AYWJTKNJYPSBMBTLPDJ3VN4VFBANCNFSM5YCRFHCA . You are receiving this because you are subscribed to this thread.Message ID: @.***>