|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpitt.search.semanticvectors.VectorSearcher
pitt.search.semanticvectors.VectorSearcher.VectorSearcherTensorSim
public static class VectorSearcher.VectorSearcherTensorSim
Class for searching a vector store using tensor product similarity. The class takes a seed tensor as a training example. This tensor should be entangled (a superposition of several individual products A * B) for non-trivial results.
| 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.VectorSearcherTensorSim(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 |
|---|
public VectorSearcher.VectorSearcherTensorSim(VectorStore queryVecStore,
VectorStore searchVecStore,
LuceneUtils luceneUtils,
java.lang.String[] queryTerms)
throws ZeroVectorException
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.
ZeroVectorException| Method Detail |
|---|
public float getScore(float[] testVector)
VectorSearcher
getScore in class VectorSearchertestVector - Vector being tested.
Scores are hopefully high when the relationship between queryVector
and testVector is analogous to the relationship between rel1 and rel2.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||