openbigdatagroup / plda

PLDA: Parallel Latent Dirichlet Allocation in C++
http://openbigdatagroup.github.io/plda
Apache License 2.0
85 stars 31 forks source link

Small bug. #9

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I think in document.cc, function

bool LDADocument::WordOccurrenceIterator::Done()

returns true at the first occurrence of the last word, but that word could have 
multiple occurrences. For example, if the last word "zebra" has 3 occurrences, 
the iterator will not get to the last 2.

Original issue reported on code.google.com by daiwe...@gmail.com on 26 Jan 2013 at 9:27

GoogleCodeExporter commented 8 years ago
Sorry there's no problem in the implementation. I understand now.

Original comment by daiwe...@gmail.com on 26 Jan 2013 at 9:38