Lucky-Dhakad / semanticvectors

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

Search with negation fails with complex vectors. #46

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
widdows-macbookpro:bible widdows$ java pitt.search.semanticvectors.Search saul 
NOT david
Jul 25, 2011 9:53:55 AM pitt.search.semanticvectors.Search RunSearch
INFO: Opening query vector store from file: termvectors.bin
Found vector for 'david'
Found vector for 'saul'
Exception in thread "main" java.lang.NullPointerException
    at pitt.search.semanticvectors.vectors.ComplexVector.normalize(ComplexVector.java:341)
    at pitt.search.semanticvectors.vectors.VectorUtils.orthogonalizeVectors(VectorUtils.java:302)
    at pitt.search.semanticvectors.CompoundVectorBuilder.getNegatedQueryVector(CompoundVectorBuilder.java:279)
    at pitt.search.semanticvectors.CompoundVectorBuilder.getQueryVector(CompoundVectorBuilder.java:175)
    at pitt.search.semanticvectors.VectorSearcher$VectorSearcherCosine.<init>(VectorSearcher.java:161)
    at pitt.search.semanticvectors.Search.RunSearch(Search.java:218)
    at pitt.search.semanticvectors.Search.main(Search.java:329)

Original issue reported on code.google.com by widd...@google.com on 25 Jul 2011 at 2:27

GoogleCodeExporter commented 9 years ago
One of the many improvements, testings and hardenings of complex vectors fixed 
this.

Original comment by widd...@google.com on 26 Aug 2011 at 7:09