lsa.Rd
Perform Latent Semantic Analysis or lda on a corpus.
lsa(corpus) # S3 method for corpus lsa(corpus) # S3 method for dtm lsa(corpus)
corpus | A corpus, as returned vy |
---|
# NOT RUN { init_textanalysis() # build document doc1 <- string_document("First document. Another sentence") doc2 <- string_document("Some example written here.") doc3 <- string_document("This is a string document") doc4 <- string_document("Yet another document for the corpus.") crps <- corpus(doc1, doc2, doc3, doc4) lsa(crps) # }