Skip to content

Commit

Permalink
Update preprocess.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yoonkim committed Jul 31, 2020
1 parent 28917b3 commit b1eeffa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions preprocess.py
Expand Up @@ -59,6 +59,7 @@ def prune_vocab(self, k, cnt = False):

def load_vocab(self, vocab_file):
self.d = {}
self.idx2word = {}
for line in open(vocab_file, 'r'):
v, k = line.strip().split()
self.d[v] = int(k)
Expand Down

0 comments on commit b1eeffa

Please sign in to comment.