Skip to content
Permalink
Browse files

Fix reverse_index in data/util

  • Loading branch information...
achyudh committed Dec 19, 2018
1 parent d9edf88 commit 1c7531eb442d1331753eacd817b567baa7764116
Showing with 0 additions and 1 deletion.
  1. +0 −1 lib/data/util.py
@@ -97,7 +97,6 @@ def trim_sentences(sentences):

def reverse_index(indexed_data, vocab, ravel=False):
reversed_data = list()
indexed_data = np.argmax(indexed_data, axis=-1)
word_idx = {id: word for word, id in vocab.items()}
for indexed_line in indexed_data:
if ravel:

0 comments on commit 1c7531e

Please sign in to comment.
You can’t perform that action at this time.