textTopicsReduce (EXPERIMENTAL)
textTopicsReduce(
data,
data_var,
n_topics = 10,
load_path = "./results",
save_dir,
embedding_model = "default"
)
(tibble/data.frame) A tibble with a text-variable to be analysed, and optional numeric/categorical variables that you might want to use for later analyses testing the significance of topics in relation to these variables.
(string) Name of the text-variable in the data tibble that you want to perform topic modeling on.
(string) The dimension reduction algorithm, currently only "default" is supported.
(string) The clustering algorithm to use, currently only "default" is supported.
(string) The directory for saving results.
(string) Name of the embedding model to use such as "miniLM", "mpnet", "multi-mpnet", "distilroberta".
A folder containing the model, data, folder with terms and values for each topic, and the document-topic matrix. Moreover the model itself is returned formatted as a data.frame together with metdata.
See textTopics
textTopicsTest
and textTopicsWordcloud
.