Groups documents into topics by clustering transformer embeddings, with per-topic cohesion diagnostics.
Usage
cluster_embedding_topics(
texts,
n_topics = 10,
embedding_model = "all-MiniLM-L6-v2",
seed = 123
)Value
List with topic assignments and diagnostics. The cohesion values are mean pairwise cosine similarity of document embeddings within each topic cluster (embedding-space compactness), not lexical coherence measures such as C_v or NPMI.
See also
find_optimal_k() and auto_tune_embedding_topics() for
choosing n_topics.
