API access class for the LSA_Toolkit LSASpace. More...
#include <lsaspace.h>
Public Member Functions | |
| LSASpace (Environment *) | |
| LSASpace constructor for an empty LSASpace object. | |
| LSASpace (Environment *, SparseMatrix *) | |
| LSASpace constructor for a computed LSASpace object. | |
| ~LSASpace () | |
| Common destructor for all LSASpace objects. | |
| void | textDump () |
| Dump an LSASpace object to text output files. | |
| void | binDump () |
| Dump an LSASpace object to a binary output file with a default name. | |
| void | binDump (std::string filename) |
| Dump an LSASpace object to a binary output file with a specified name. | |
| void | binLoad () |
| Load an LSASpace object from a binary file with the default name. | |
| void | binLoad (std::string filename) |
| Load an LSASpace object from a binary file with a specified name. | |
| bool | isEmpty () |
| Check if the LSASpace object contains data or is empty. | |
| bool | isQOptimized () |
| Check if LSASpace has been optimized for query processing. | |
| std::size_t | numSVals () |
| Get the number of singular values computed for the LSASpace object. | |
| std::size_t | rowVecSize () |
| Get the number of row type entries in the LSASpace. | |
| std::size_t | colVecSize () |
| Get the number of column type entries in the LSASpace. | |
| void | qOptimize () |
| Optimize the LSASpace for query processing. | |
| void | compareTermxTermspace (std::size_t termId, std::valarray< double > *cosListPtr) |
| Perform a simple comparison of one term vector to all other term vectors in termspace. | |
| void | compareTermxDocspace (std::size_t termId, std::valarray< double > *cosListPtr) |
| Perform a simple cross comparison of one term vector to all the document vectors in docspace. | |
| void | compareDocxTermspace (std::size_t docId, std::valarray< double > *cosListPtr) |
| Perform a simple cross comparison of one document vector to all the term vectors in termspace. | |
| void | compareDocxDocspace (std::size_t docId, std::valarray< double > *cosListPtr) |
| Perform a simple comparison of one document vector to all the document vectors in docspace. | |
| void | termQuery (const std::vector< size_t > &qtermIds, const std::vector< size_t > &qtermFreqs, std::valarray< double > *cosListPtr) |
| Computes a list of cosines between the Query and all terms in termspace. | |
| void | docQuery (const std::vector< size_t > &qtermIds, const std::vector< size_t > &qtermFreqs, std::valarray< double > *cosListPtr) |
| Computes the list of cosines between a Query and all docs in docspace. | |
Public Attributes | |
| LSASpace_Impl * | ptr |
API access class for the LSA_Toolkit LSASpace.
The LSASpace class contains the generated LSA Space and the query processing functionality for Latent Semantic Analysis tasks. Construction of the LSASpace object using a SparseMatrix for input performs the truncated Singular Value Decomposition on the input matrix.