h2coder/plda

Lines don't correspond if one is empty

Opened this issue · 0 comments

What steps will reproduce the problem?
1. Use a word count file with an empty line somewhere (i.e. an document that is 
empty for some reason)
2. Call infer on it.

What is the expected output? What do you see instead?
I expect the inferred topics to be in the same line as the word counts.
If there is an empty line, I expect the inference to be all zeros for this 
line, or at least an empty line as well. 
Instead, my output has one line less, which is unfortunate since document 
identifiers are not included in the format used by plda.

What version of the product are you using? On what operating system?
I tried with 2.0 and 3.1 and it occured both times (Ubuntu 11.04).

Original issue reported on code.google.com by rothb...@gmail.com on 6 Oct 2011 at 5:15