Merge branch 'perf_moses2' of github.com:hieuhoang/mosesdecoder into perf_moses2

This commit is contained in:
Hieu Hoang 2016-07-31 02:21:38 +01:00
commit f8a11cd59b

View File

@ -120,7 +120,7 @@ void StoreTarget::Append(const line_text &line, bool log_prob, bool scfg)
if (scfg) {
bool nonTerm = false;
if (scfg && tok[0] == '[' && tok.back() == ']') {
if (scfg && tok[0] == '[' && tok[tok.size() - 1] == ']') {
//cerr << "NON-TERM=" << tok << " " << nonTerms.size() << endl;
nonTerm = true;
}