bug. Unknown words given id starting from 1

This commit is contained in:
Hieu Hoang 2012-05-15 15:43:01 +01:00
parent ac1492e17b
commit 8eede65114

View File

@ -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;