Unverified Commit ac1c9d5c authored by yangarbiter's avatar yangarbiter Committed by GitHub
Browse files

Fix encoding of CMUDict data reading (#1665)

parent 43047865
......@@ -148,7 +148,7 @@ class CMUDict(Dataset):
with open(os.path.join(self._root_path, basename_symbols), "r") as text:
self._symbols = [line.strip() for line in text.readlines()]
with open(os.path.join(self._root_path, basename), "r") as text:
with open(os.path.join(self._root_path, basename), "r", encoding='latin-1') as text:
self._dictionary = _parse_dictionary(text.readlines(),
exclude_punctuations=self.exclude_punctuations)
......
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