ruanwz commited on
Commit
90a0f99
·
1 Parent(s): 37004ab

Add BERTopic model

Browse files
Files changed (4) hide show
  1. README.md +97 -0
  2. config.json +15 -0
  3. topic_embeddings.safetensors +3 -0
  4. topics.json +0 -0
README.md ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ tags:
4
+ - bertopic
5
+ library_name: bertopic
6
+ pipeline_tag: text-classification
7
+ ---
8
+
9
+ # transformers_issues_topics
10
+
11
+ This is a [BERTopic](https://github.com/MaartenGr/BERTopic) model.
12
+ BERTopic is a flexible and modular topic modeling framework that allows for the generation of easily interpretable topics from large datasets.
13
+
14
+ ## Usage
15
+
16
+ To use this model, please install BERTopic:
17
+
18
+ ```
19
+ pip install -U bertopic
20
+ ```
21
+
22
+ You can use the model as follows:
23
+
24
+ ```python
25
+ from bertopic import BERTopic
26
+ topic_model = BERTopic.load("ruanwz/transformers_issues_topics")
27
+
28
+ topic_model.get_topic_info()
29
+ ```
30
+
31
+ ## Topic overview
32
+
33
+ * Number of topics: 30
34
+ * Number of training documents: 9000
35
+
36
+ <details>
37
+ <summary>Click here for an overview of all topics.</summary>
38
+
39
+ | Topic ID | Topic Keywords | Topic Frequency | Label |
40
+ |----------|----------------|-----------------|-------|
41
+ | -1 | tensorflow - pytorch - tf - pretrained - gpu | 11 | -1_tensorflow_pytorch_tf_pretrained |
42
+ | 0 | tokenizer - tokenizers - tokenize - tokenization - token | 2089 | 0_tokenizer_tokenizers_tokenize_tokenization |
43
+ | 1 | gpt2 - gpt - gpt2doubleheadsmodel - gpt2lmheadmodel - distilgpt2 | 1471 | 1_gpt2_gpt_gpt2doubleheadsmodel_gpt2lmheadmodel |
44
+ | 2 | ner - seq2seqtrainer - seq2seq - runseq2seqpy - valueerror | 856 | 2_ner_seq2seqtrainer_seq2seq_runseq2seqpy |
45
+ | 3 | modelcard - modelcards - card - model - cards | 601 | 3_modelcard_modelcards_card_model |
46
+ | 4 | trainer - trainertrain - trainers - training - evaluateduringtraining | 500 | 4_trainer_trainertrain_trainers_training |
47
+ | 5 | longformer - longformers - longformerformultiplechoice - tf - longformertokenizerfast | 455 | 5_longformer_longformers_longformerformultiplechoice_tf |
48
+ | 6 | typos - typo - fix - correction - fixed | 439 | 6_typos_typo_fix_correction |
49
+ | 7 | albertbasev2 - albertforpretraining - albert - albertformaskedlm - xlnet | 407 | 7_albertbasev2_albertforpretraining_albert_albertformaskedlm |
50
+ | 8 | summarization - summaries - summary - text - nlp | 351 | 8_summarization_summaries_summary_text |
51
+ | 9 | readmemd - readmetxt - readme - modelcard - file | 333 | 9_readmemd_readmetxt_readme_modelcard |
52
+ | 10 | transformerscli - transformers - transformer - transformerxl - importerror | 259 | 10_transformerscli_transformers_transformer_transformerxl |
53
+ | 11 | ci - testing - tests - test - slow | 228 | 11_ci_testing_tests_test |
54
+ | 12 | questionansweringpipeline - questionanswering - answering - tfalbertforquestionanswering - questionasnwering | 156 | 12_questionansweringpipeline_questionanswering_answering_tfalbertforquestionanswering |
55
+ | 13 | pipeline - pipelines - pipelinespy - pipelineexception - fixpipeline | 137 | 13_pipeline_pipelines_pipelinespy_pipelineexception |
56
+ | 14 | onnxonnxruntime - onnx - onnxexport - 04onnxexport - 04onnxexportipynb | 113 | 14_onnxonnxruntime_onnx_onnxexport_04onnxexport |
57
+ | 15 | benchmark - benchmarks - accuracy - evaluation - metrics | 98 | 15_benchmark_benchmarks_accuracy_evaluation |
58
+ | 16 | huggingfacemaster - huggingfacetokenizers297 - huggingface - huggingfaces - huggingfacetransformers | 81 | 16_huggingfacemaster_huggingfacetokenizers297_huggingface_huggingfaces |
59
+ | 17 | generationbeamsearchpy - generatebeamsearch - generatebeamsearchoutputs - beamsearch - nonbeamsearch | 69 | 17_generationbeamsearchpy_generatebeamsearch_generatebeamsearchoutputs_beamsearch |
60
+ | 18 | wav2vec2 - wav2vec - wav2vec20 - wav2vec2forctc - wav2vec2xlrswav2vec2 | 56 | 18_wav2vec2_wav2vec_wav2vec20_wav2vec2forctc |
61
+ | 19 | flax - flaxelectraformaskedlm - flaxelectraforpretraining - flaxjax - flaxelectramodel | 53 | 19_flax_flaxelectraformaskedlm_flaxelectraforpretraining_flaxjax |
62
+ | 20 | cachedir - cache - cachedpath - cached - caching | 43 | 20_cachedir_cache_cachedpath_cached |
63
+ | 21 | notebook - notebooks - colab - community - t5 | 33 | 21_notebook_notebooks_colab_community |
64
+ | 22 | wandbproject - wandb - sagemaker - sagemakertrainer - wandbcallback | 32 | 22_wandbproject_wandb_sagemaker_sagemakertrainer |
65
+ | 23 | bigbird - py7zr - tapas - tres - v4 | 32 | 23_bigbird_py7zr_tapas_tres |
66
+ | 24 | electra - electrapretrainedmodel - electraformaskedlm - electraformultiplechoice - electrafortokenclassification | 28 | 24_electra_electrapretrainedmodel_electraformaskedlm_electraformultiplechoice |
67
+ | 25 | layoutlm - layout - layoutlmtokenizer - layoutlmbaseuncased - tf | 24 | 25_layoutlm_layout_layoutlmtokenizer_layoutlmbaseuncased |
68
+ | 26 | isort - blackisortflake8 - github - repo - version | 18 | 26_isort_blackisortflake8_github_repo |
69
+ | 27 | pplm - pr - deprecated - variable - ppl | 14 | 27_pplm_pr_deprecated_variable |
70
+ | 28 | blenderbot - blenderbot3b - blenderbotforcausallm - chatbot - boto3 | 13 | 28_blenderbot_blenderbot3b_blenderbotforcausallm_chatbot |
71
+
72
+ </details>
73
+
74
+ ## Training hyperparameters
75
+
76
+ * calculate_probabilities: False
77
+ * language: english
78
+ * low_memory: False
79
+ * min_topic_size: 10
80
+ * n_gram_range: (1, 1)
81
+ * nr_topics: 30
82
+ * seed_topic_list: None
83
+ * top_n_words: 10
84
+ * verbose: True
85
+
86
+ ## Framework versions
87
+
88
+ * Numpy: 1.23.5
89
+ * HDBSCAN: 0.8.33
90
+ * UMAP: 0.5.3
91
+ * Pandas: 1.5.3
92
+ * Scikit-Learn: 1.2.2
93
+ * Sentence-transformers: 2.2.2
94
+ * Transformers: 4.31.0
95
+ * Numba: 0.56.4
96
+ * Plotly: 5.15.0
97
+ * Python: 3.10.12
config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "calculate_probabilities": false,
3
+ "language": "english",
4
+ "low_memory": false,
5
+ "min_topic_size": 10,
6
+ "n_gram_range": [
7
+ 1,
8
+ 1
9
+ ],
10
+ "nr_topics": 30,
11
+ "seed_topic_list": null,
12
+ "top_n_words": 10,
13
+ "verbose": true,
14
+ "embedding_model": "sentence-transformers/all-MiniLM-L6-v2"
15
+ }
topic_embeddings.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5ed213efb72bb6ba4b728679e0cd3b742abf08534f8f0b041423d7287ffb61a4
3
+ size 46168
topics.json ADDED
The diff for this file is too large to render. See raw diff