diff options
| author | CHRISTOPHER DYER <cdyer@CHRISTOPHERs-MacBook-Pro.local> | 2015-02-03 21:24:07 -0500 | 
|---|---|---|
| committer | CHRISTOPHER DYER <cdyer@CHRISTOPHERs-MacBook-Pro.local> | 2015-02-03 21:24:07 -0500 | 
| commit | 24cee877f2bb4b490495ea578564d0266b1addd3 (patch) | |
| tree | 9b3456a1f832363294b715be62180c59fc7d7139 /decoder/lattice.cc | |
| parent | e2d9eb0ba94acd728a0706fa4209a36f67dd6d80 (diff) | |
support multiple sparse features on lattice edges
Diffstat (limited to 'decoder/lattice.cc')
| -rw-r--r-- | decoder/lattice.cc | 2 | 
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) { | 
