mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-25 04:43:03 +03:00
mmBitext now maintains a vector of document names.
This commit is contained in:
parent
8a921f5dc9
commit
1791f47bfb
@ -43,6 +43,7 @@ namespace Moses
|
|||||||
if (docname.size() && docname[0] == '#') continue; // comment
|
if (docname.size() && docname[0] == '#') continue; // comment
|
||||||
size_t docid = this->m_docname2docid.size();
|
size_t docid = this->m_docname2docid.size();
|
||||||
this->m_docname2docid[docname] = docid;
|
this->m_docname2docid[docname] = docid;
|
||||||
|
this->m_docname.push_back(docname);
|
||||||
line >> b;
|
line >> b;
|
||||||
VERBOSE(1, "DOCUMENT MAP " << docname
|
VERBOSE(1, "DOCUMENT MAP " << docname
|
||||||
<< " " << a << "-" << b+a << endl);
|
<< " " << a << "-" << b+a << endl);
|
||||||
|
Loading…
Reference in New Issue
Block a user