Removed some debugging messages.

Moved fill_token_seq to tpt_tokenindex.h.
This commit is contained in:
Ulrich Germann 2014-03-18 12:18:05 +00:00
parent 394a40b934
commit 3f9cefe44e

View File

@ -90,12 +90,9 @@ namespace Moses
while(getline(in2,line)) text2.push_back(line);
while(getline(ina,line)) symal.push_back(line);
// cerr << "Read " << btdyn->T1->size() << " sentence pairs" << endl;
lock_guard<mutex> guard(this->lock);
cerr << __FILE__ << ":" << __LINE__ << endl;
btdyn = btdyn->add(text1,text2,symal);
assert(btdyn);
cerr << __FILE__ << ":" << __LINE__ << endl;
cerr << "Loaded " << btdyn->T1->size() << " sentence pairs" << endl;
}
@ -528,13 +525,4 @@ namespace Moses
throw "CreateRuleLookupManager is currently not supported in Mmsapt!";
}
template<typename Token>
void
fill_token_seq(TokenIndex& V, string const& line, vector<Token>& dest)
{
istringstream buf(line); string w;
while (buf>>w) dest.push_back(Token(V[w]));
}
}