Bug fix to tagger: wasnt backproping to token vectors
@@ -137,9 +137,12 @@ class NeuralTagger(object):
self.model.nI = tokvecs.shape[1]
tag_scores, bp_tag_scores = self.model.begin_update(tokvecs, drop=drop)
+
loss, d_tag_scores = self.get_loss(docs, golds, tag_scores)
d_tokvecs = bp_tag_scores(d_tag_scores, sgd)
+ bp_tokvecs(d_tokvecs, sgd=sgd)
+
state['tag_scores'] = tag_scores
state['bp_tag_scores'] = bp_tag_scores
state['d_tag_scores'] = d_tag_scores
