seunginah / semanticvectors

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

Binary build index fails #44

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Check out typedvectors branch.

Try java pitt.search.semanticvectors.BuildIndex -vectortype binary index/ ... 

The following problem occurs:

Creating term vectors ...There are 13752 terms (and 1190 docs).
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 7, Size: 
7
    at java.util.ArrayList.RangeCheck(ArrayList.java:547)
    at java.util.ArrayList.get(ArrayList.java:322)
    at pitt.search.semanticvectors.vectors.BinaryVector.concludeVote(BinaryVector.java:386)
    at pitt.search.semanticvectors.vectors.BinaryVector.concludeVote(BinaryVector.java:327)
    at pitt.search.semanticvectors.vectors.BinaryVector.concludeVote(BinaryVector.java:356)
    at pitt.search.semanticvectors.vectors.BinaryVector.normalize(BinaryVector.java:462)
    at pitt.search.semanticvectors.TermVectorsFromLucene.trainTermVectors(TermVectorsFromLucene.java:204)
    at pitt.search.semanticvectors.TermVectorsFromLucene.createTemVectorsFromLuceneImpl(TermVectorsFromLucene.java:164)
    at pitt.search.semanticvectors.TermVectorsFromLucene.createTermVectorsFromLucene(TermVectorsFromLucene.java:136)
    at pitt.search.semanticvectors.BuildIndex.main(BuildIndex.java:131)

Original issue reported on code.google.com by widd...@google.com on 14 Jul 2011 at 11:58

GoogleCodeExporter commented 9 years ago
Fixed with several small improvements. Thanks!

Closing this issue, though others may open as we test more of the features 
pre-launch.

Original comment by widd...@google.com on 25 Jul 2011 at 2:02