summaryrefslogtreecommitdiff
path: root/src/csplit.cc
diff options
context:
space:
mode:
authorChris Dyer <redpony@gmail.com>2009-12-07 01:50:49 -0500
committerChris Dyer <redpony@gmail.com>2009-12-07 01:50:49 -0500
commitec7edcc7e398bdb040d810094b8416ad9f279d98 (patch)
treebdaea01e4317d04946de432d8b3a187881e63e96 /src/csplit.cc
parentd6c82eaee9489a4d187a266a7d76a3e09cde119f (diff)
minor changes to the way the phonotactic prob is calculated
Diffstat (limited to 'src/csplit.cc')
-rw-r--r--src/csplit.cc2
1 files changed, 2 insertions, 0 deletions
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<string> 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<LatticeArc>(1, LatticeArc(TD::Convert(in[i]), 0.0, 1)));
pimpl_->BuildTrellis(in, forest);
forest->Reweight(weights);
return true;