save("my_model", serialization="safetensors")Īfter having trained your BERTopic model, several are saved within your model. update_topics(docs, n_gram_range=(1, 3)) Common ¶īelow, you will find an overview of common functions in BERTopic. Of all methods and a short description of its purpose. To alleviate this issue, you will find an overview Overview ¶īERTopic has many functions that quickly can become overwhelming. To find more about the underlying algorithm and assumptions here. Represent topics with one or multiple representations.Clustering reduced embeddings into topics.The following steps are completely modular: You can swap out any of these models or even remove them entirely. In other words, BERTopic not only allows you to build your own topic model but to explore several topic modeling techniques on top of your customized topic model: However, it assumes some independence between these steps which makes BERTopic quite modular. Modularity ¶īy default, the main steps for topic modeling with BERTopic are sentence-transformers, UMAP, HDBSCAN, and c-TF-IDF run in sequence. Instead of iterating over all of these different topic representations, you can model them simultaneously with multi-aspect topic representations in BERTopic.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |