We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b86d5b7 commit 17502c1Copy full SHA for 17502c1
examples/dialogue/plato-2/utils/tokenization.py
@@ -86,7 +86,7 @@ def convert_to_unicode(text):
86
def load_vocab(vocab_file):
87
"""Loads a vocabulary file into a dictionary."""
88
vocab = collections.OrderedDict()
89
- fin = open(vocab_file)
+ fin = open(vocab_file, 'r', encoding="UTF-8")
90
for num, line in enumerate(fin):
91
items = convert_to_unicode(line.rstrip()).split("\t")
92
if len(items) > 2:
0 commit comments