diff options
author | Chris Dyer <redpony@gmail.com> | 2009-12-07 01:50:49 -0500 |
---|---|---|
committer | Chris Dyer <redpony@gmail.com> | 2009-12-07 01:50:49 -0500 |
commit | ec7edcc7e398bdb040d810094b8416ad9f279d98 (patch) | |
tree | bdaea01e4317d04946de432d8b3a187881e63e96 /src/csplit.cc | |
parent | d6c82eaee9489a4d187a266a7d76a3e09cde119f (diff) |
minor changes to the way the phonotactic prob is calculated
Diffstat (limited to 'src/csplit.cc')
-rw-r--r-- | src/csplit.cc | 2 |
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; |