Documentation

Modeling and Prediction

Develop predictive models using topic models and word embeddings.

To find clusters and extract features from high-dimensional text datasets, you can use machine learning techniques and models such as LSA, LDA, and word embeddings. You can combine features created with Text Analytics Toolbox™ with features from other data sources. With these features, you can build machine learning models that take advantage of textual, numeric, and other types of data.

Functions

fitldaFit latent Dirichlet allocation (LDA) model
fitlsaFit LSA model
resumeResume fitting LDA model
logpDocument log-probabilities and goodness of fit of LDA model
predictPredict top LDA topics of documents
transformTransform documents into lower-dimensional space
wordcloudCreate word cloud chart from bag-of-words model or LDA model
readWordEmbeddingRead word embedding from text file
trainWordEmbeddingTrain word embedding
writeWordEmbeddingWrite word embedding file
word2vecMap word to embedding vector
vec2wordMap embedding vector to word
ismemberTest word is member of word embedding
wordcloudCreate word cloud chart from bag-of-words model or LDA model
textscatter2-D scatter plot of text
textscatter33-D scatter plot of text

Using Objects

bagOfWordsBag-of-words model
ldaModelLatent Dirichlet allocation (LDA) model
lsaModelLatent semantic analysis (LSA) model
wordEmbeddingMap words to vectors and back

Topics

Create Simple Text Model for Classification

This example shows how to train a simple text classifier on word frequency counts using a bag-of-words model.

Analyze Text Data Using Topic Models

This example shows how to use the Latent Dirichlet Allocation (LDA) topic model to analyze text data.

Classify Text Data Using Deep Learning

This example shows how to classify the event type of weather reports from their text descriptions using a deep learning long short-term memory (LSTM) network.

Visualize Word Embeddings Using Text Scatter Plots

This example shows how to visualize word embeddings using 2-D and 3-D t-SNE and text scatter plots.

Featured Examples

Was this topic helpful?