summaryrefslogtreecommitdiff
path: root/decoder/lattice.cc
diff options
context:
space:
mode:
authorCHRISTOPHER DYER <cdyer@CHRISTOPHERs-MacBook-Pro.local>2015-02-03 21:24:07 -0500
committerCHRISTOPHER DYER <cdyer@CHRISTOPHERs-MacBook-Pro.local>2015-02-03 21:24:07 -0500
commitc7b2a39958912d7b85a384a871609e6db73042c7 (patch)
tree5405ac792a173edaa50e67750c2b10722a47962a /decoder/lattice.cc
parentafd65846cf1456a8b49e8482b9a40777014f6883 (diff)
support multiple sparse features on lattice edges
Diffstat (limited to 'decoder/lattice.cc')
-rw-r--r--decoder/lattice.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/lattice.cc b/decoder/lattice.cc
index 1f97048d..2740ce63 100644
--- a/decoder/lattice.cc
+++ b/decoder/lattice.cc
@@ -49,7 +49,7 @@ void LatticeTools::ConvertTextToLattice(const string& text, Lattice* pl) {
l.clear();
l.resize(ids.size());
for (int i = 0; i < l.size(); ++i)
- l[i].push_back(LatticeArc(ids[i], 0.0, 1));
+ l[i].push_back(LatticeArc(ids[i], SparseVector<double>(), 1));
}
void LatticeTools::ConvertTextOrPLF(const string& text_or_plf, Lattice* pl) {