Skip to content

Commit

Permalink
fix util #54
Browse files Browse the repository at this point in the history
  • Loading branch information
aonotas committed Dec 13, 2017
1 parent 10c59ee commit fdfcbd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepcrf/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def load_vocab(filename):
with open(filename) as f:
for l in f:
lst = str_to_unicode_python2(l).strip().split(u'\t')
w = lst[0]
w = u'\t'.join(lst[:-1])
idx = lst[-1]
vocab[w] = int(idx)
return vocab
Expand Down

0 comments on commit fdfcbd3

Please sign in to comment.