Package: BERTopic 0.1.2

Biying Zhou

BERTopic: Topic Modeling with 'BERTopic'

Interface to the Python package 'BERTopic' <https://maartengr.github.io/BERTopic/> for transformer-based topic modeling. Provides R wrappers to fit BERTopic models, transform new documents, update and reduce topics, extract topic- and document-level information, and generate interactive visualizations. 'Python' backends and dependencies are managed via the 'reticulate' package.

Authors:Biying Zhou [aut, cre]

BERTopic_0.1.2.tar.gz
BERTopic_0.1.2.zip(r-4.7-any)BERTopic_0.1.2.zip(r-4.6-any)BERTopic_0.1.2.zip(r-4.5-any)
BERTopic_0.1.2.tgz(r-4.6-any)BERTopic_0.1.2.tgz(r-4.5-any)
BERTopic_0.1.2.tar.gz(r-4.7-any)BERTopic_0.1.2.tar.gz(r-4.6-any)
BERTopic_0.1.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
BERTopic/json (API)

# Install 'BERTopic' in R:
install.packages('BERTopic', repos = c('https://feng-ji-lab.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/feng-ji-lab/bertopic/issues

Datasets:
  • sms_spam - SMS Spam Collection (UCI) - subset for examples

On CRAN:

Conda:

4.13 score 3 stars 18 scripts 278 downloads 36 exports 21 dependencies

Last updated from:e64c090d34. Checks:7 ERROR, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develERROR130
source / vignettesOK150
linux-releaseERROR124
macos-releaseERROR151
macos-oldrelERROR155
windows-develERROR104
windows-releaseERROR104
windows-oldrelERROR119
wasm-releaseOK97

Exports:bertopic_as_document_topic_matrixbertopic_availablebertopic_find_topicsbertopic_fitbertopic_get_document_infobertopic_get_representative_docsbertopic_has_embedding_modelbertopic_loadbertopic_reduce_topicsbertopic_savebertopic_self_checkbertopic_session_infobertopic_set_embedding_modelbertopic_set_topic_labelsbertopic_topic_termsbertopic_topicsbertopic_topics_over_timebertopic_transformbertopic_update_topicsbertopic_visualize_barchartbertopic_visualize_distributionbertopic_visualize_documentsbertopic_visualize_heatmapbertopic_visualize_hierarchical_documentsbertopic_visualize_hierarchybertopic_visualize_term_rankbertopic_visualize_topicsbertopic_visualize_topics_over_timebertopic_visualize_topics_per_classinstall_py_depsinstall_py_deps_condainstall_py_deps_venvset_bertopic_seeduse_bertopicuse_bertopic_condaenvuse_bertopic_virtualenv

Dependencies:cliglueherejsonlitelatticelifecyclemagrittrMatrixpillarpkgconfigpngrappdirsRcppRcppTOMLreticulaterlangrprojroottibbleutf8vctrswithr

Readme and manuals

Help Manual

Help pageTopics
Coerce to data.frameas.data.frame.bertopic_r
Coerce to a document-topic probability matrixbertopic_as_document_topic_matrix
Is Python + BERTopic available?bertopic_available
Find nearest topics for a query stringbertopic_find_topics
Fit BERTopic from Rbertopic_fit
Document-level informationbertopic_get_document_info
Representative documents for a topicbertopic_get_representative_docs
Does the model have a usable embedding model?bertopic_has_embedding_model
Load a BERTopic modelbertopic_load
Reduce/merge topicsbertopic_reduce_topics
Save a BERTopic modelbertopic_save
Quick self-check for the BERTopic R interfacebertopic_self_check
Summarize Python/BERTopic session infobertopic_session_info
Replace or set the embedding modelbertopic_set_embedding_model
Relabel topicsbertopic_set_topic_labels
Get top terms for a topicbertopic_topic_terms
Get topic info as a tibblebertopic_topics
Compute topics over timebertopic_topics_over_time
Transform new documents with a fitted BERTopic modelbertopic_transform
Update topic representationsbertopic_update_topics
Visualize a topic barchartbertopic_visualize_barchart
Visualize topic probability distributionbertopic_visualize_distribution
Visualize embedded documentsbertopic_visualize_documents
Visualize topic similarity heatmapbertopic_visualize_heatmap
Visualize hierarchical documents and topicsbertopic_visualize_hierarchical_documents
Visualize hierarchical clustering of topicsbertopic_visualize_hierarchy
Visualize term rank evolutionbertopic_visualize_term_rank
Visualize topic mapbertopic_visualize_topics
Visualize topics over timebertopic_visualize_topics_over_time
Visualize topics per classbertopic_visualize_topics_per_class
Coefficients (top terms) for BERTopiccoef.bertopic_r
Fortify method for ggplot2fortify.bertopic_r
Install Python dependencies for BERTopic (auto route)install_py_deps
Install Python dependencies for BERTopic (Conda route)install_py_deps_conda
Install Python dependencies for BERTopic (virtualenv route)install_py_deps_venv
Predict method for BERTopic modelspredict.bertopic_r
Print method for bertopic_rprint.bertopic_r
Set random seed for R and Python backendsset_bertopic_seed
SMS Spam Collection (UCI) - subset for examplessms_spam
Summary for BERTopic modelssummary.bertopic_r
Bind current R session to the BERTopic environment (auto route)use_bertopic
Bind current R session to a BERTopic Conda environmentuse_bertopic_condaenv
Bind current R session to a BERTopic virtualenvuse_bertopic_virtualenv