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/lattice.cc | |
parent | 9be811a26da86b87bac8696f155188d9a675e61b (diff) |
increase intersection speed by a couple orders of magnitude for linear chain graphs
Diffstat (limited to 'decoder/lattice.cc')
-rw-r--r-- | decoder/lattice.cc | 4 |
1 files changed, 3 insertions, 1 deletions
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(); } |