Closed gabrer closed 6 years ago
A small bug does not allow to train the network when Bidirectional is set to False.
In "model.py", on line 135, Bidirectional should be set to "False": Line 135
From: self.sent_gru = nn.GRU(word_gru_hidden, sent_gru_hidden, bidirectional= True) to: self.sent_gru = nn.GRU(word_gru_hidden, sent_gru_hidden, bidirectional= False)
self.sent_gru = nn.GRU(word_gru_hidden, sent_gru_hidden, bidirectional= True)
self.sent_gru = nn.GRU(word_gru_hidden, sent_gru_hidden, bidirectional= False)
Thanks for finding this out, I have updated the code to reflect this change.
A small bug does not allow to train the network when Bidirectional is set to False.
In "model.py", on line 135, Bidirectional should be set to "False": Line 135
From:
self.sent_gru = nn.GRU(word_gru_hidden, sent_gru_hidden, bidirectional= True)
to:self.sent_gru = nn.GRU(word_gru_hidden, sent_gru_hidden, bidirectional= False)