diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2013-09-06 00:25:32 +0400 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2013-09-06 00:25:32 +0400 |
commit | 8803bcdba673dcf75a423175b469ca3ff4b121bc (patch) | |
tree | 32048afb823dbb3ad240cd4926e727bcee88a8e4 /moses/PCNTools.cpp | |
parent | 56c4a412310402488c2612f034215ff881b7649d (diff) |
lattice decoding with sparse features
Diffstat (limited to 'moses/PCNTools.cpp')
-rw-r--r-- | moses/PCNTools.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/moses/PCNTools.cpp b/moses/PCNTools.cpp index 1b0a7da6c..a1ac0b7e1 100644 --- a/moses/PCNTools.cpp +++ b/moses/PCNTools.cpp @@ -114,12 +114,11 @@ CNAlt getCNAlt(const std::string& in, int &c) const string &tok = toks[ind]; if (tok.find('=') == tok.npos) { - // not sparse feature float val = Moses::Scan<float>(tok); probs.push_back(val); } else { - // sparse feature + // beginning of sparse feature break; } } |