stanza icon indicating copy to clipboard operation
stanza copied to clipboard

export "stanza.DownloadMethod"

Open doublex opened this issue 3 years ago • 3 comments

This line: https://github.com/stanfordnlp/stanza/blob/main/stanza/pipeline/core.py#L169

Please export stanza.DownloadMethod so one could write:

stanza.Pipeline( ..., download_method=stanza.DownloadMethod.NONE, ... )

doublex avatar Apr 25 '22 09:04 doublex

You can just pass in None and it will have the same effect as DownloadMethod.NONE. Or you can do

from stanza.pipeline.core import DownloadMethod

AngledLuffa avatar Apr 25 '22 15:04 AngledLuffa

After running into this irritation enough times with REUSE_RESOURCES, I decided to go ahead and do what you asked :)

AngledLuffa avatar Jun 27 '22 21:06 AngledLuffa

https://github.com/stanfordnlp/stanza/commit/082177c13133402174b528a2bef9c7a7e6286c41

AngledLuffa avatar Jun 27 '22 21:06 AngledLuffa