stanza icon indicating copy to clipboard operation
stanza copied to clipboard

[QUESTION]resources_1.x.0.json is repeatedly downloaded

Open oasis-0927 opened this issue 3 years ago • 2 comments

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. image

oasis-0927 avatar Jun 07 '22 11:06 oasis-0927

I will add a log message indicating why this is happening to the next version

AngledLuffa avatar Jun 07 '22 20:06 AngledLuffa

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.

stale[bot] avatar Aug 10 '22 00:08 stale[bot]

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

AngledLuffa avatar Sep 14 '22 19:09 AngledLuffa

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: @.***>

AngledLuffa avatar Oct 11 '22 07:10 AngledLuffa