From ec7edcc7e398bdb040d810094b8416ad9f279d98 Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Mon, 7 Dec 2009 01:50:49 -0500 Subject: minor changes to the way the phonotactic prob is calculated --- src/csplit.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/csplit.cc') diff --git a/src/csplit.cc b/src/csplit.cc index 788f3112..21e1b711 100644 --- a/src/csplit.cc +++ b/src/csplit.cc @@ -145,6 +145,8 @@ bool CompoundSplit::Translate(const string& input, vector in; SplitUTF8String(input, &in); smeta->SetSourceLength(in.size()); // TODO do utf8 or somethign + for (int i = 0; i < in.size(); ++i) + smeta->src_lattice_.push_back(vector(1, LatticeArc(TD::Convert(in[i]), 0.0, 1))); pimpl_->BuildTrellis(in, forest); forest->Reweight(weights); return true; -- cgit v1.2.3