stanza
stanza copied to clipboard
export "stanza.DownloadMethod"
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, ... )
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
After running into this irritation enough times with REUSE_RESOURCES, I decided to go ahead and do what you asked :)
https://github.com/stanfordnlp/stanza/commit/082177c13133402174b528a2bef9c7a7e6286c41