This function compares the similarity between a low rank approximation of a term-document matrix and and a given query vector. (See e.g. "18 - Matrix decompositions and latent semantic indexing" in "Manning, S.D. et al. (2009): An Introduction to Information Retrieval. Cambridge University Press." for matematical details: https://nlp.stanford.edu/IR-book/pdf/irbookprint.pdf )
1 2 | LatentSemanticSearch(tdm, qvec, spec = "nnn", dims = lsa::dimcalc_share(),
...)
|
tdm, |
term-document matrix as returned by the function createVSM() |
qvec, |
query vector as returned by the function createQuery() |
spec, |
determines weighting used by the function tm::weightSMART() |
dims, |
rank of the appoximation (integer value) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.