Unverified Commit 4b236aed authored by Javier's avatar Javier Committed by GitHub
Browse files

Fix utf-8 yaml load for marian conversion to pytorch in Windows (#28618)

Fix utf-8 yaml in marian conversion
parent 33df0369
...@@ -677,7 +677,7 @@ def convert(source_dir: Path, dest_dir): ...@@ -677,7 +677,7 @@ def convert(source_dir: Path, dest_dir):
def load_yaml(path): def load_yaml(path):
import yaml import yaml
with open(path) as f: with open(path, encoding="utf-8") as f:
return yaml.load(f, Loader=yaml.BaseLoader) return yaml.load(f, Loader=yaml.BaseLoader)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment