practical-pytorch
practical-pytorch copied to clipboard
error during Visualizing attention in tutorial
I'm tutorial myself with your seq2seq tutorial code.
error pop out this lines
output_words, attentions = evaluate("je suis trop froid .") plt.matshow(attentions.numpy())
`---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
KeyError: 'trop' ` I haven't modified your code from the original version, this error hasn't been reported yet so I write this post.
May be, your 'eng-fra.txt' is modified by yourself or some one else. Because this text file has not the context 'je suis trop froid .'