mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-05 02:22:21 +03:00
line counts
This commit is contained in:
parent
72c0c585df
commit
d7c41a255e
@ -54,8 +54,13 @@ void LexicalReordering::Load(System &system)
|
||||
{
|
||||
InputFileStream file(m_path);
|
||||
string line;
|
||||
size_t lineNum = 0;
|
||||
|
||||
while(getline(file, line)) {
|
||||
if (++lineNum % 1000000 == 0) {
|
||||
cerr << lineNum << " ";
|
||||
}
|
||||
|
||||
std::vector<std::string> toks = TokenizeMultiCharSeparator(line, "|||");
|
||||
assert(toks.size() == 3);
|
||||
PhraseImpl *source = PhraseImpl::CreateFromString(system.systemPool, system.GetVocab(), system, toks[0]);
|
||||
|
@ -115,7 +115,7 @@ void PhraseTableMemory::Load(System &system)
|
||||
InputFileStream strme(m_path);
|
||||
string line;
|
||||
while (getline(strme, line)) {
|
||||
if (++lineNum % 100000) {
|
||||
if (++lineNum % 1000000 == 0) {
|
||||
cerr << lineNum << " ";
|
||||
}
|
||||
toks.clear();
|
||||
|
Loading…
Reference in New Issue
Block a user