sweetapplee commited on
Commit
4b7d29d
·
1 Parent(s): 7f40fd4

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("sweetapplee/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 | bert - tokenizer - tokenizers - pretrained - pytorch | 16 | -1_bert_tokenizer_tokenizers_pretrained |
42
+ | 0 | tokenization - tokenizer - tokenizers - token - tokens | 2184 | 0_tokenization_tokenizer_tokenizers_token |
43
+ | 1 | tf - tpu - t5 - tftrainer - onnx | 1761 | 1_tf_tpu_t5_tftrainer |
44
+ | 2 | modelcard - modelcards - card - model - cards | 939 | 2_modelcard_modelcards_card_model |
45
+ | 3 | importerror - attributeerror - valueerror - typeerror - runmlmpy | 486 | 3_importerror_attributeerror_valueerror_typeerror |
46
+ | 4 | doc - docstring - docstrings - docs - document | 449 | 4_doc_docstring_docstrings_docs |
47
+ | 5 | albertforpretraining - xlnet - albertbasev2 - albertformaskedlm - xlnetlmheadmodel | 400 | 5_albertforpretraining_xlnet_albertbasev2_albertformaskedlm |
48
+ | 6 | gpt2 - gpt2tokenizer - gpt2xl - gpt - gpt2tokenizerfast | 348 | 6_gpt2_gpt2tokenizer_gpt2xl_gpt |
49
+ | 7 | readmemd - readmetxt - readme - file - camembertbasereadmemd | 273 | 7_readmemd_readmetxt_readme_file |
50
+ | 8 | s2s - s2sdistill - s2t - s2strainer - exampless2s | 260 | 8_s2s_s2sdistill_s2t_s2strainer |
51
+ | 9 | longformer - longformers - longformerformultiplechoice - longformertokenizerfast - globalattentionmask | 216 | 9_longformer_longformers_longformerformultiplechoice_longformertokenizerfast |
52
+ | 10 | transformerscli - transformers - transformer - importerror - transformerxl | 194 | 10_transformerscli_transformers_transformer_importerror |
53
+ | 11 | tests - testing - slow - test - faster | 187 | 11_tests_testing_slow_test |
54
+ | 12 | cuda - cuda0 - memory - ram - gpus | 159 | 12_cuda_cuda0_memory_ram |
55
+ | 13 | pipeline - pipelines - ner - nerpipeline - featureextractionpipeline | 145 | 13_pipeline_pipelines_ner_nerpipeline |
56
+ | 14 | questionansweringpipeline - longformerforquestionanswering - answering - questionanswering - distilbertforquestionanswering | 144 | 14_questionansweringpipeline_longformerforquestionanswering_answering_questionanswering |
57
+ | 15 | trainertrain - trainer - loggingstrategy - logging - training | 139 | 15_trainertrain_trainer_loggingstrategy_logging |
58
+ | 16 | benchmark - benchmarks - accuracy - precision - comparison | 139 | 16_benchmark_benchmarks_accuracy_precision |
59
+ | 17 | labelsmoothednllloss - label - labelsmoothingfactor - labels - labelsmoothing | 75 | 17_labelsmoothednllloss_label_labelsmoothingfactor_labels |
60
+ | 18 | huggingfacemaster - huggingfacetokenizers297 - huggingface - huggingfaces - huggingfacetransformers | 74 | 18_huggingfacemaster_huggingfacetokenizers297_huggingface_huggingfaces |
61
+ | 19 | generationbeamsearchpy - generatebeamsearch - beamsearch - nonbeamsearch - beam | 73 | 19_generationbeamsearchpy_generatebeamsearch_beamsearch_nonbeamsearch |
62
+ | 20 | wav2vec2 - wav2vec - wav2vec20 - wav2vec2forctc - wav2vec2xlrswav2vec2 | 59 | 20_wav2vec2_wav2vec_wav2vec20_wav2vec2forctc |
63
+ | 21 | flax - flaxelectraformaskedlm - flaxelectraforpretraining - flaxjax - flaxelectramodel | 52 | 21_flax_flaxelectraformaskedlm_flaxelectraforpretraining_flaxjax |
64
+ | 22 | notebook - notebooks - notebookprogresscallback - community - colab | 51 | 22_notebook_notebooks_notebookprogresscallback_community |
65
+ | 23 | wandbproject - wandb - wandbcallback - wandbdisabled - wandbdisabledtrue | 40 | 23_wandbproject_wandb_wandbcallback_wandbdisabled |
66
+ | 24 | cachedir - cache - cachedpath - caching - cached | 34 | 24_cachedir_cache_cachedpath_caching |
67
+ | 25 | closed - add - bort - added - deleted | 33 | 25_closed_add_bort_added |
68
+ | 26 | electra - electrapretrainedmodel - electraformaskedlm - electralarge - electraformultiplechoice | 26 | 26_electra_electrapretrainedmodel_electraformaskedlm_electralarge |
69
+ | 27 | layoutlm - layout - layoutlmtokenizer - layoutlmbaseuncased - tf | 26 | 27_layoutlm_layout_layoutlmtokenizer_layoutlmbaseuncased |
70
+ | 28 | isort - blackisortflake8 - github - repo - version | 18 | 28_isort_blackisortflake8_github_repo |
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.4
91
+ * Pandas: 1.5.3
92
+ * Scikit-Learn: 1.2.2
93
+ * Sentence-transformers: 2.2.2
94
+ * Transformers: 4.34.1
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:23c2d5624e4004135bc87b2b08d7e7c7b6d82b2b57c02817717ac60f1f8c26f9
3
+ size 46168
topics.json ADDED
The diff for this file is too large to render. See raw diff