From 648575a8604243259c110a363f02fbb64d44bcf9 Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Sat, 23 Jun 2012 15:54:21 -0400 Subject: clean up tagger a bit --- decoder/tagger.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'decoder/tagger.cc') diff --git a/decoder/tagger.cc b/decoder/tagger.cc index 54890e85..63e855c8 100644 --- a/decoder/tagger.cc +++ b/decoder/tagger.cc @@ -54,6 +54,7 @@ struct TaggerImpl { const int new_node_id = forest->AddNode(kXCAT)->id_; for (int k = 0; k < tagset_.size(); ++k) { TRulePtr rule(TRule::CreateLexicalRule(src, tagset_[k])); + rule->lhs_ = kXCAT; Hypergraph::Edge* edge = forest->AddEdge(rule, Hypergraph::TailNodeVector()); edge->i_ = i; edge->j_ = i+1; -- cgit v1.2.3