Skip to content

Commit

Permalink
force utf8 for cg3
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Reynolds committed Jun 8, 2021
1 parent aa97c3f commit edfb580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/udar/sentence.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ def disambiguate(self, gram_path: Union[str, Path] = '',
else:
cmd = ['vislcg3', '-g', gram_path]
try:
p = Popen(cmd, stdin=PIPE, stdout=PIPE, universal_newlines=True)
p = Popen(cmd, encoding='utf8', stdin=PIPE, stdout=PIPE, universal_newlines=True)
except FileNotFoundError as e:
raise FileNotFoundError('vislcg3 must be installed and be in your '
'PATH variable to disambiguate a text.') from e # noqa: E501
Expand Down

0 comments on commit edfb580

Please sign in to comment.