Documentation

Text Analytics Toolbox Functions

Alphabetical List By Category

Text Data Preparation

extractFileTextRead text from PDF, Microsoft Word, and plain text files
writeTextDocumentWrite documents to text file
eraseTagsErase HTML and XML tags from text
eraseURLsErase HTTP and HTTPS URLs from text
erasePunctuationErase punctuation from text and documents
decodeHTMLEntitiesConvert HTML and XML entities into characters
normalizeWordsRemove inflections from words using the Porter stemmer
removeLongWordsRemove long words from documents or bag-of-words model
removeShortWordsRemove short words from documents or bag-of-words model
removeWordsRemove selected words from document or bag-of-words model
stopWordsStop word list
upperConvert documents to uppercase
lowerConvert documents to lowercase
docfunApply function to words in documents
replaceFind and replace substrings in documents
regexprepReplace text in words of documents using regular expression
addDocumentAdd documents to bag-of-words model
removeDocumentRemove documents from bag-of-words model
removeEmptyDocumentsRemove empty documents from tokenized document array or bag-of-words model
removeInfrequentWordsRemove words with low counts from bag-of-words model
topkwordsMost important words in bag-of-words model or LDA topic
encodeEncode documents as matrix of word counts
tfidfTerm Frequency–Inverse Document Frequency (tf-idf) matrix
contextSearch documents for word occurrences in context
doclengthLength of documents in document array
doc2cellConvert documents to cell array of string vectors
joinWordsConvert documents to string by joining words
stringConvert scalar document to string vector
tokenizedDocumentArray of tokenized documents
bagOfWordsBag-of-words model

Modeling and Prediction

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
bagOfWordsBag-of-words model
ldaModelLatent Dirichlet allocation (LDA) model
lsaModelLatent semantic analysis (LSA) model
wordEmbeddingMap words to vectors and back

Display and Presentation

wordcloudCreate word cloud chart from bag-of-words model or LDA model
textscatter2-D scatter plot of text
textscatter33-D scatter plot of text
wordCloudCountsCount words for word cloud creation
Was this topic helpful?