Skip to content

Commit

Permalink
Fixed bug in rnnlm
Browse files Browse the repository at this point in the history
  • Loading branch information
neubig committed Dec 12, 2016
1 parent e2ed6f8 commit 6859387
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tutorial_rnnlm.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def calc_lm_loss(sent):
wids = [vw.w2i[w] for w in sent]

# start the rnn by inputting "<s>"
s = f_init.add_input(wembs[-1])
s = f_init.add_input(WORDS_LOOKUP[wids[-1]])

# feed word vectors into the RNN and predict the next word
losses = []
Expand Down

0 comments on commit 6859387

Please sign in to comment.