lstm_sentence_classifier
lstm_sentence_classifier copied to clipboard
Fix vocab.load_vectors call
Due to a change in torchtext the call to load_vectors has to be updated.
The index on predictions is no longer needed and crashes, since pred.data.max(1)[1].numpy() returns a list of floats.