summaryrefslogtreecommitdiff
path: root/decoder/lexcrf.cc
diff options
context:
space:
mode:
authorChris Dyer <redpony@gmail.com>2009-12-26 12:49:06 -0600
committerChris Dyer <redpony@gmail.com>2009-12-26 12:49:06 -0600
commit3f01c8ed777aec011181dc515d9d28aa81e8530b (patch)
tree93d9f6bfb9c26cb8334ca97b42b42a27dc1dc323 /decoder/lexcrf.cc
parent9be811a26da86b87bac8696f155188d9a675e61b (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.cc1
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;
}