Skip to content

Commit

Permalink
Fix utf-8 yaml load for marian conversion to pytorch in Windows (#28618)
Browse files Browse the repository at this point in the history
Fix utf-8 yaml in marian conversion
  • Loading branch information
SystemPanic authored Feb 8, 2024
1 parent 33df036 commit 4b236ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ def convert(source_dir: Path, dest_dir):
def load_yaml(path):
import yaml

with open(path) as f:
with open(path, encoding="utf-8") as f:
return yaml.load(f, Loader=yaml.BaseLoader)


Expand Down

0 comments on commit 4b236ae

Please sign in to comment.