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 and Ita Zaporozhets committed May 14, 2024
1 parent 3f9aa45 commit 59c9e40
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 59c9e40

Please sign in to comment.