dileepajayakody / semanticvectors

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

document vector corresponding to my query : TF-IDF #75

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. How to get document vector corresponding to my query?
2.
3.

What is the expected output? What do you see instead?
After doing indexing and applying tf-idf model and LSA on my corpus, I am 
getting term and document vectors correclty. For some new query, I am getting 
top relevant documents correctly. But now I want to get a document vector 
corresponding to my query(multi-word). How to achieve this?

What version of the product are you using? On what operating system?
I am using "semanticvectors-4.0 "  on ubuntu 12.04

Please provide any additional information below.

Original issue reported on code.google.com by rohitdee...@gmail.com on 10 Nov 2013 at 12:40

GoogleCodeExporter commented 9 years ago
For this you can use '-searchtype printquery', as in 
http://semanticvectors.googlecode.com/svn/javadoc/latest-stable/pitt/search/sema
nticvectors/Search.SearchType.html#PRINTQUERY

And use the -matchcase option if your pathnames have any uppercase characters.

So it may look something like this:

~/Data/Bible: java pitt.search.semanticvectors.Search -matchcase  
-queryvectorfile docvectors.bin -searchtype printquery 
bible_chapters/Genesis/Chapter_1
Opening query vector store from file: docvectors.bin
Searching term vectors, searchtype PRINTQUERY
Found vector for 'bible_chapters/Genesis/Chapter_1'
RealVector.  Dense.  Coordinates are:
-0.08940928 0.048319492 0.0840949 -0.1529306 0.0111201005 0.0010032 
-0.069757655 ...

Original comment by dwidd...@gmail.com on 10 Nov 2013 at 4:44