fit_topic_model <- function(x, k = NULL, type = c("lda", "lsa", "stm", "pca", "ca", "glove",
"ctm", "cluster"),
control = list(...), return_all = TRUE){
# Latent Dirichlet Allocation
# (em vs gibbs)
if(type == "lda"){
}
# Latent Semantic Analysis got em!
if(type == "lsa"){
}
# Structural Topic Model got em!
if(type == "stm"){
}
# Principle Component Analsis
if(type == "pca"){
}
# Correspondence Analysis
if(type == "ca"){
}
# GloVe
if(type == "glove"){
}
# Correlated Topic Model got em!
if(type == "ctm"){
}
# Cluster Topic Model
if(type == "cluster"){
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.