def test_greedy(self, sentence, poslist): return greedy(sentence, poslist, self.classes, self.featureset)
def train_greedy(self, sentence, poslist, tags): tags_star = greedy(sentence, poslist, self.classes, self.featureset) self.featureset.update_weights(sentence, poslist, tags_star, tags)