Skip to content

Commit

Permalink
Remove single comma that prevented Stanza from using GPU 😩
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinHammarstedt committed Oct 27, 2023
1 parent 3f241a0 commit 256b1bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sparv/modules/stanza/stanza_swe.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def annotate_swe(
logger.debug(f"Running dependency parsing and POS-taggning on {len(sentences)} sentences"
f" (using {'GPU' if use_gpu and not fallback else 'CPU'}).")
nlp_args["processors"] = "tokenize,pos,lemma,depparse" # Comma-separated list of processors to use
nlp_args["use_gpu"] = use_gpu and not fallback,
nlp_args["use_gpu"] = use_gpu and not fallback
nlp = stanza.Pipeline(**nlp_args)

else:
Expand Down

0 comments on commit 256b1bf

Please sign in to comment.