diff options
author | Hieu Hoang <fishandfrolick@gmail.com> | 2012-05-15 18:43:01 +0400 |
---|---|---|
committer | Hieu Hoang <fishandfrolick@gmail.com> | 2012-05-15 18:43:01 +0400 |
commit | 1ef0d6b7f69937e51a4d5f65e630cc30c75cbd9d (patch) | |
tree | 664ebd9392d98c4c99cc776739acf9505bcc8117 /OnDiskPt | |
parent | 0db69045486f352ba4191bddee76d91022e55763 (diff) |
bug. Unknown words given id starting from 1
Diffstat (limited to 'OnDiskPt')
-rw-r--r-- | OnDiskPt/Vocab.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OnDiskPt/Vocab.cpp b/OnDiskPt/Vocab.cpp index 86072edc6..0ed9ffa2a 100644 --- a/OnDiskPt/Vocab.cpp +++ b/OnDiskPt/Vocab.cpp @@ -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; |