Re: Dimension mismatch exception

2014-03-21 Thread Herb Roitblat
H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de -Original Message- From: Stefy D. [mailto:tsuki_st...@yahoo.com] Sent: Thursday, March 20, 2014 10:05 PM To: java-user@lucene.apache.org Subject: Dimension mismatch exception Dear all, I am trying to compu

Re: Dimension mismatch exception

2014-03-21 Thread Stefy D.
unless you have some Lucene code around, too. If this is the case, you should give more information how you use Lucene. Uwe - Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message- > From: Stefy D. [mailto:tsuki_st.

RE: Dimension mismatch exception

2014-03-20 Thread Uwe Schindler
014 10:05 PM > To: java-user@lucene.apache.org > Subject: Dimension mismatch exception > > Dear all, > > I am trying to compute the cosine similarity between several documents. I > have an indexed directory A made using 1 files and another indexed > directory B made u

Re: Dimension mismatch exception

2014-03-20 Thread Herb Roitblat
If you want to compute the cosines between pairs of documents (each a compared with each b), then the dimension is 100, the size of each document. If you want to compare the whole index then you will need to make them the same length (number of elements) by padding the shorter with zeroes. There

Dimension mismatch exception

2014-03-20 Thread Stefy D.
Dear all, I am trying to compute the cosine similarity between several documents. I have an indexed directory A made using 1 files and another indexed directory B made using 2 files. All the indexed documents from both directories have the same length (100 sentences). I want to get the