Note: This page has been translated by MathWorks. Click here to see

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Latent semantic analysis (LSA) model

A latent semantic analysis (LSA) model discovers relationships between documents and the words that they contain. An LSA model is a dimensionality reduction tool useful for running low-dimensional statistical models on high-dimensional word counts. If the model was fit using a bag-of-n-grams model, then the software treats the n-grams as individual words.

Create an LSA model using the `fitlsa`

function.

`transform` | Transform documents into lower-dimensional space |

`bagOfWords`

| `fitlsa`

| `ldaModel`

| `lsaModel`

| `transform`