예제 #1
0
	def test_greedy(self, sentence, poslist):
		return greedy(sentence, poslist, self.classes, self.featureset)
예제 #2
0
	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)