diff options
author | Chris Dyer <cdyer@vivace.clab.cs.cmu.edu> | 2015-03-26 22:53:35 -0400 |
---|---|---|
committer | Chris Dyer <cdyer@vivace.clab.cs.cmu.edu> | 2015-03-26 22:53:35 -0400 |
commit | 936959749c21f73b251531133bcf8b4f29acdde6 (patch) | |
tree | f7e21a856f35708ee34abd7f7779fe49c6c630d5 | |
parent | 1543b24f05d344568560f4ff15905939d0281062 (diff) | |
parent | 48099f37a36ff3a198c36e881159b14291f8309f (diff) |
Merge branch 'master' of https://github.com/redpony/cdec
-rw-r--r-- | decoder/bottom_up_parser.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/bottom_up_parser.cc b/decoder/bottom_up_parser.cc index a614b8b3..7ce8e09d 100644 --- a/decoder/bottom_up_parser.cc +++ b/decoder/bottom_up_parser.cc @@ -274,7 +274,7 @@ void PassiveChart::ApplyRules(const int i, void PassiveChart::ApplyUnaryRules(const int i, const int j) { const vector<int>& nodes = chart_(i,j); // reference is important! for (unsigned di = 0; di < nodes.size(); ++di) { - const WordID& cat = forest_->nodes_[nodes[di]].cat_; + const WordID cat = forest_->nodes_[nodes[di]].cat_; for (unsigned ri = 0; ri < unaries_.size(); ++ri) { //cerr << "At (" << i << "," << j << "): applying " << unaries_[ri]->AsString() << endl; if (unaries_[ri]->f()[0] == cat) { |