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/lattice.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'decoder/lattice.cc') diff --git a/decoder/lattice.cc b/decoder/lattice.cc index 56bc9551..956e12b4 100644 --- a/decoder/lattice.cc +++ b/decoder/lattice.cc @@ -54,8 +54,10 @@ void LatticeTools::ConvertTextToLattice(const string& text, Lattice* pl) { void LatticeTools::ConvertTextOrPLF(const string& text_or_plf, Lattice* pl) { if (LooksLikePLF(text_or_plf)) HypergraphIO::PLFtoLattice(text_or_plf, pl); - else + else { ConvertTextToLattice(text_or_plf, pl); + pl->is_sentence_ = true; + } pl->ComputeDistances(); } -- cgit v1.2.3