diff options
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(); } |