Skip to content

Commit

Permalink
No need to use the nocharlm model in this test (which is not download…
Browse files Browse the repository at this point in the history
…ed by default)
  • Loading branch information
AngledLuffa committed Dec 21, 2024
1 parent 449daeb commit d693c2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stanza/tests/pipeline/test_decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def process(self, document):
return document

def test_register_processor_variant_with_override():
nlp = stanza.Pipeline(dir=TEST_MODELS_DIR, lang='en', processors={"tokenize": "combined", "pos": "combined_nocharlm", "lemma": "cool"}, package=None, download_method=None)
nlp = stanza.Pipeline(dir=TEST_MODELS_DIR, lang='en', processors={"tokenize": "combined", "pos": "combined", "lemma": "cool"}, package=None, download_method=None)
doc = nlp(EN_DOC)
result = '\n\n'.join(sent.tokens_string() for sent in doc.sentences)
assert EN_DOC_COOL_LEMMAS == result
Expand Down

0 comments on commit d693c2a

Please sign in to comment.