There was an error while loading. Please reload this page.
1 parent 7a8636d commit 50b7a88Copy full SHA for 50b7a88
.gitignore
@@ -1,4 +1,6 @@
1
-/sqlova/**/*.pyc
2
-/wikisql/**/*.pyc
+sqlova/**/*.pyc
+wikisql/**/*.pyc
3
+sqlnet/__pycache__
4
+bert/__pycache__
5
.idea
6
*.swp
bert/tokenization.py
@@ -70,7 +70,7 @@ def load_vocab(vocab_file):
70
"""Loads a vocabulary file into a dictionary."""
71
vocab = collections.OrderedDict()
72
index = 0
73
- with open(vocab_file, "r") as reader:
+ with open(vocab_file, "r", encoding="utf-8") as reader:
74
while True:
75
token = convert_to_unicode(reader.readline())
76
if not token:
0 commit comments