seunginah / semanticvectors

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

Complex BuildIndex fails #45

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Check out the typed-vectors branch. The following problem occurs:

$ java pitt.search.semanticvectors.BuildIndex -vectortype complex index/
Jul 14, 2011 7:55:54 PM pitt.search.semanticvectors.BuildIndex main
INFO: Seedlength = 10
Dimension = 200
Minimum frequency = 0
Maximum frequency = 2147483647
Number non-alphabet characters = 0
Contents fields are: [contents]
Jul 14, 2011 7:55:54 PM pitt.search.semanticvectors.BuildIndex main
INFO: Creating elemental document vectors ...
Jul 14, 2011 7:55:54 PM pitt.search.semanticvectors.TermVectorsFromLucene 
createTemVectorsFromLuceneImpl
INFO: Populating basic sparse doc vector store, number of vectors: 1190
Jul 14, 2011 7:55:54 PM pitt.search.semanticvectors.VectorStoreSparseRAM 
createRandomVectors
INFO: Creating store of sparse vectors  ...
Jul 14, 2011 7:55:54 PM pitt.search.semanticvectors.VectorStoreSparseRAM 
createRandomVectors
INFO: Created 1190 sparse random vectors.
Creating term vectors ...There are 13752 terms (and 1190 docs).
Exception in thread "main" java.lang.NullPointerException
    at pitt.search.semanticvectors.vectors.ComplexVectorUtils.toCartesian(ComplexVectorUtils.java:159)
    at pitt.search.semanticvectors.vectors.ComplexVector.makeDenseCartesianRandomVector(ComplexVector.java:246)
    at pitt.search.semanticvectors.vectors.ComplexVector.superpose(ComplexVector.java:294)
    at pitt.search.semanticvectors.TermVectorsFromLucene.trainTermVectors(TermVectorsFromLucene.java:202)
    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:59

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:01