diff options
author | Chris Dyer <redpony@gmail.com> | 2009-12-26 12:49:06 -0600 |
---|---|---|
committer | Chris Dyer <redpony@gmail.com> | 2009-12-26 12:49:06 -0600 |
commit | 3f01c8ed777aec011181dc515d9d28aa81e8530b (patch) | |
tree | 93d9f6bfb9c26cb8334ca97b42b42a27dc1dc323 /decoder/lexcrf.cc | |
parent | 9be811a26da86b87bac8696f155188d9a675e61b (diff) |
increase intersection speed by a couple orders of magnitude for linear chain graphs
Diffstat (limited to 'decoder/lexcrf.cc')
-rw-r--r-- | decoder/lexcrf.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/decoder/lexcrf.cc b/decoder/lexcrf.cc index b80d055c..b0e03c69 100644 --- a/decoder/lexcrf.cc +++ b/decoder/lexcrf.cc @@ -106,6 +106,7 @@ bool LexicalCRF::Translate(const string& input, LatticeTools::ConvertTextToLattice(input, &lattice); smeta->SetSourceLength(lattice.size()); pimpl_->BuildTrellis(lattice, *smeta, forest); + forest->is_linear_chain_ = true; forest->Reweight(weights); return true; } |