Lucky-Dhakad / semanticvectors

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

IllegalArgumentException in LSA-based search example from DocumentSearch #52

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. [using bible_chapters indexed with Lucene into index/]
java pitt.search.semanticvectors.LSA index/
Nov 7, 2011 1:20:48 PM pitt.search.semanticvectors.LSA main
INFO: Dimension = 200
Nov 7, 2011 1:20:48 PM pitt.search.semanticvectors.LSA main
INFO: Minimum frequency = 0
Nov 7, 2011 1:20:48 PM pitt.search.semanticvectors.LSA main
INFO: Maximum frequency = 2147483647
Nov 7, 2011 1:20:48 PM pitt.search.semanticvectors.LSA main
INFO: Number non-alphabet characters = 0
Nov 7, 2011 1:20:48 PM pitt.search.semanticvectors.LSA smatFromIndex
INFO: There are 12551 terms (and 1190 docs)
Nov 7, 2011 1:20:49 PM pitt.search.semanticvectors.LSA main
INFO: Starting SVD using algorithm LAS2
Nov 7, 2011 1:20:51 PM pitt.search.semanticvectors.LSA main
INFO: Write vectors incrementally to file svd_termvectors.bin
Nov 7, 2011 1:20:51 PM pitt.search.semanticvectors.LSA main
INFO: Wrote 12551 term vectors to svd_termvectors.bin
Nov 7, 2011 1:20:51 PM pitt.search.semanticvectors.LSA main
INFO: Write vectors incrementally to file svd_docvectors.bin
Nov 7, 2011 1:20:51 PM pitt.search.semanticvectors.LSA main
INFO: Wrote 1190 document vectors to svd_docvectors.bin

2.  java pitt.search.semanticvectors.Search -queryvectorfile svd_docvectors.bin 
-searchvectorfile svd_termvectors.bin -matchcase 
/home/ajt/tools/SemanticVectors/bible_chapters/Luke/Chapter_2
Opening query vector store from file: svd_docvectors.bin
Exception in thread "main" java.lang.IllegalArgumentException: option 
-dimension requires an argument
        at pitt.search.semanticvectors.Flags.parseCommandLineFlags(Flags.java:241)
        at pitt.search.semanticvectors.Flags.parseFlagsFromString(Flags.java:163)
        at pitt.search.semanticvectors.VectorStoreReaderLucene.readHeadersFromIndexInput(VectorStoreReaderLucene.java:129)
        at pitt.search.semanticvectors.VectorStoreReaderLucene.<init>(VectorStoreReaderLucene.java:105)
        at pitt.search.semanticvectors.VectorStoreReader.openVectorStore(VectorStoreReader.java:50)
        at pitt.search.semanticvectors.Search.RunSearch(Search.java:182)
        at pitt.search.semanticvectors.Search.main(Search.java:324)
ajt@GTW1:~/tools/SemanticVectors$ 

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
semanticvectors_3.0
lucene-3.4.0

Please provide any additional information below.

Original issue reported on code.google.com by ajtthoma...@googlemail.com on 7 Nov 2011 at 1:24

GoogleCodeExporter commented 9 years ago
You're quite right. This is fixed in the code in SVN but the fix hasn't been 
released yet.

See the thread at 
https://groups.google.com/group/semanticvectors/browse_thread/thread/a24025d2d24
c419d

I will make a new release later today, I don't think we have other critical 
things in flight at the moment.

Original comment by widd...@google.com on 7 Nov 2011 at 4:02

GoogleCodeExporter commented 9 years ago
Problem should be fixed in version 3.2. Please reopen if anyone runs into 
further issues.

Original comment by widd...@google.com on 14 Nov 2011 at 2:44