Skip to content

Commit

Permalink
Fix the processing of w/ and w/o transformers when adding NER to the …
Browse files Browse the repository at this point in the history
…default_accurate package
  • Loading branch information
AngledLuffa committed Dec 24, 2024
1 parent 667e35c commit b37bc8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stanza/resources/prepare_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ def get_default_accurate(resources, lang):
if transformer is not None:
for processor in ('pos', 'depparse', 'constituency', 'sentiment'):
update_processor_add_transformer(resources, lang, default_processors, processor, transformer)
if default_processors['ner'].endswith("_charlm"):
if 'ner' in default_processors and (default_processors['ner'].endswith("_charlm") or default_processors['ner'].endswith("_nocharlm")):
update_processor_add_transformer(resources, lang, default_processors, "ner", transformer)

optional = get_optional_accurate(resources, lang)
Expand Down

0 comments on commit b37bc8d

Please sign in to comment.