(self, sentence)
| 282 | return forward_score - gold_score |
| 283 | |
| 284 | def forward(self, sentence): # dont confuse this with _forward_alg above. |
| 285 | # Get the emission scores from the BiLSTM |
| 286 | lstm_feats = self._get_lstm_features(sentence) |
| 287 | |
| 288 | # Find the best path, given the features. |
| 289 | score, tag_seq = self._viterbi_decode(lstm_feats) |
| 290 | return score, tag_seq |
| 291 | |
| 292 | ##################################################################### |
| 293 | # Run training |
nothing calls this directly
no test coverage detected