From 3f01c8ed777aec011181dc515d9d28aa81e8530b Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Sat, 26 Dec 2009 12:49:06 -0600 Subject: increase intersection speed by a couple orders of magnitude for linear chain graphs --- decoder/lexcrf.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'decoder/lexcrf.cc') 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; } -- cgit v1.2.3