Open neoblizz opened 8 years ago
Is the code you pasted here a complete copy? You may have to read the original data to get index_to_word
, just load_model_parameters
is not enough (since you have to map index to word). The code in RNNLM.ipynb
is a self-contained one, you can try this before playing with theano.
Change it to: next_wordprobs, = model.forward_propagation(new_sentence)
Great tutorial, learning a lot reading through this! I collected the code from the tutorial as follows but I don't understand how you made it work because I get some very basic errors (I am new to RNN):
It's a silly error but I can't figure out a fix, will greatly appreciate if you can help me test the model.