mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-04 09:56:33 +03:00
bug. Unknown words given id starting from 1
This commit is contained in:
parent
ac1492e17b
commit
8eede65114
@ -44,7 +44,8 @@ bool Vocab::Load(OnDiskWrapper &onDiskWrapper)
|
||||
// create lookup
|
||||
// assume contiguous vocab id
|
||||
m_lookup.resize(m_vocabColl.size() + 1);
|
||||
|
||||
m_nextId = m_lookup.size();
|
||||
|
||||
CollType::const_iterator iter;
|
||||
for (iter = m_vocabColl.begin(); iter != m_vocabColl.end(); ++iter) {
|
||||
UINT32 vocabId = iter->second;
|
||||
|
Loading…
Reference in New Issue
Block a user