pitt.search.semanticvectors
Class VectorSearcher.VectorSearcherConvolutionSim

java.lang.Object
  extended by pitt.search.semanticvectors.VectorSearcher
      extended by pitt.search.semanticvectors.VectorSearcher.VectorSearcherConvolutionSim
Enclosing class:
VectorSearcher

public static class VectorSearcher.VectorSearcherConvolutionSim
extends VectorSearcher

Class for searching a vector store using convolution similarity. Interface is similar to that for VectorSearcherTensorSim.


Nested Class Summary
 
Nested classes/interfaces inherited from class pitt.search.semanticvectors.VectorSearcher
VectorSearcher.BalancedVectorSearcherPerm, VectorSearcher.VectorSearcherConvolutionSim, VectorSearcher.VectorSearcherCosine, VectorSearcher.VectorSearcherCosineSparse, VectorSearcher.VectorSearcherMaxSim, VectorSearcher.VectorSearcherPerm, VectorSearcher.VectorSearcherSubspaceSim, VectorSearcher.VectorSearcherTensorSim
 
Constructor Summary
VectorSearcher.VectorSearcherConvolutionSim(VectorStore queryVecStore, VectorStore searchVecStore, LuceneUtils luceneUtils, java.lang.String[] queryTerms)
           
 
Method Summary
 float getScore(float[] testVector)
          This needs to be filled in for each subclass.
 
Methods inherited from class pitt.search.semanticvectors.VectorSearcher
getNearestNeighbors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VectorSearcher.VectorSearcherConvolutionSim

public VectorSearcher.VectorSearcherConvolutionSim(VectorStore queryVecStore,
                                                   VectorStore searchVecStore,
                                                   LuceneUtils luceneUtils,
                                                   java.lang.String[] queryTerms)
                                            throws ZeroVectorException
Parameters:
queryVecStore - Vector store to use for query generation.
searchVecStore - The vector store to search.
luceneUtils - LuceneUtils object to use for query weighting. (May be null.)
queryTerms - Terms that will be parsed into a query expression. This should be a list of one or more tilde-separated training pairs, e.g., paris~france berlin~germany followed by a list of one or more search terms, e.g., london birmingham.
Throws:
ZeroVectorException
Method Detail

getScore

public float getScore(float[] testVector)
Description copied from class: VectorSearcher
This needs to be filled in for each subclass. It takes an individual vector and assigns it a relevance score for this VectorSearcher.

Specified by:
getScore in class VectorSearcher
Parameters:
testVector - Vector being tested. Scores are hopefully high when the relationship between queryVector and testVector is analogoues to the relationship between rel1 and rel2.