crack521 / semanticvectors

Automatically exported from code.google.com/p/semanticvectors
Other
1 stars 0 forks source link

BuildIndex doesn't save the term vectors if calculation of document vectors is skipped #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When starting BuildIndex with the parameter -docindexing none the term vectors 
are generated normally. However, right after that the program exits instead of 
saving the termvectors.bin file.

Solution: The last if-clause in the main() method in BuildIndex needs a simple 
additional else-clause to save the vectors in case neither "inmemory" nor 
"incremental" are used for docindexing:

else {
  System.err.println("Writing term vectors to " + termFile);
  vecWriter.WriteVectors(termFile, vecStore);
}

Original issue reported on code.google.com by sebastian%realpath.org@gtempaccount.com on 21 Jun 2010 at 7:49

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r369.

Original comment by dwidd...@gmail.com on 21 Jun 2010 at 5:25

GoogleCodeExporter commented 9 years ago
(Wow, I didn't realize that saying "Fixes bug 26" in a revision message causes 
the bug to be marked as fixed automatically. That's pretty cool. The issue 
could still do with external verification, but I think it's OK now.)

Original comment by widd...@google.com on 21 Jun 2010 at 5:28