Traceback (most recent call last):
File "/home/dlituiev/GNorm2/GeneNER_SpeAss_run.py", line 25, in <module>
nlp_token = stanza.Pipeline(model_dir='gnorm_trained_models/stanza', lang='en', processors={'tokenize': 'spacy'},package='None', download_method=None) #package='craft' ;./gnorm_trained_models/stanza
File "/home/dlituiev/GNorm2/gnorm2/lib64/python3.9/site-packages/stanza/pipeline/core.py", line 237, in __init__
self.load_list = maintain_processor_list(resources, lang, package, processors, maybe_add_mwt=(not kwargs.get("tokenize_pretokenized")))
File "/home/dlituiev/GNorm2/gnorm2/lib64/python3.9/site-packages/stanza/resources/common.py", line 208, in maintain_processor_list
add_mwt(processors, resources, lang)
File "/home/dlituiev/GNorm2/gnorm2/lib64/python3.9/site-packages/stanza/resources/common.py", line 184, in add_mwt
if value in resources[lang][PACKAGES] and MWT in resources[lang][PACKAGES][value]:
KeyError: 'packages'
The README says that stanza version must be 1.4.0, but this is not reflected in
requirements.txt, which leads to the latest version installed (1.7.0 as of today), and an error:There may be a simple fix to this, but I am not familiar with stanza