asoria HF staff commited on
Commit
0b7364f
1 Parent(s): de48ef0

Add BERTopic model

Browse files
Files changed (4) hide show
  1. README.md +99 -0
  2. config.json +17 -0
  3. topic_embeddings.safetensors +3 -0
  4. topics.json +0 -0
README.md ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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("asoria/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 | pytorch - tensorflow - bert - tf - pretrained | 15 | -1_pytorch_tensorflow_bert_tf |
42
+ | 0 | bert - bertforsequenceclassification - berttokenizer - bart - batchencodeplus | 2321 | 0_bert_bertforsequenceclassification_berttokenizer_bart |
43
+ | 1 | cuda - memory - trainertrain - tensorflow - trainer | 1554 | 1_cuda_memory_trainertrain_tensorflow |
44
+ | 2 | transformerscli - transformers - transformer - importerror - transformerxl | 882 | 2_transformerscli_transformers_transformer_importerror |
45
+ | 3 | modelcard - modelcards - card - model - models | 490 | 3_modelcard_modelcards_card_model |
46
+ | 4 | gpt2 - gpt2tokenizer - gpt2xl - gpt2tokenizerfast - gpt2model | 462 | 4_gpt2_gpt2tokenizer_gpt2xl_gpt2tokenizerfast |
47
+ | 5 | attributeerror - typeerror - valueerror - runtimeerror - indexerror | 437 | 5_attributeerror_typeerror_valueerror_runtimeerror |
48
+ | 6 | typos - typo - doc - docstring - fix | 336 | 6_typos_typo_doc_docstring |
49
+ | 7 | t5 - t5model - t5base - tf - t5large | 298 | 7_t5_t5model_t5base_tf |
50
+ | 8 | readmemd - readmetxt - readme - modelcard - file | 270 | 8_readmemd_readmetxt_readme_modelcard |
51
+ | 9 | ci - testing - tests - test - speedup | 254 | 9_ci_testing_tests_test |
52
+ | 10 | s2s - s2sdistill - s2t - s2strainer - exampless2s | 245 | 10_s2s_s2sdistill_s2t_s2strainer |
53
+ | 11 | glue - gluepy - glueconvertexamplestofeatures - roberta - huggingfacetransformers | 214 | 11_glue_gluepy_glueconvertexamplestofeatures_roberta |
54
+ | 12 | ner - pipeline - pipelines - nerpipeline - fillmaskpipeline | 158 | 12_ner_pipeline_pipelines_nerpipeline |
55
+ | 13 | rag - ragtokenforgeneration - ragsequenceforgeneration - clean - tests | 153 | 13_rag_ragtokenforgeneration_ragsequenceforgeneration_clean |
56
+ | 14 | questionansweringpipeline - questionanswering - answering - tfalbertforquestionanswering - questionasnwering | 143 | 14_questionansweringpipeline_questionanswering_answering_tfalbertforquestionanswering |
57
+ | 15 | onnx - 04onnxexport - 04onnxexportipynb - aionnx - sphynx | 131 | 15_onnx_04onnxexport_04onnxexportipynb_aionnx |
58
+ | 16 | longformer - longformers - longform - longformerlayer - longformermodel | 104 | 16_longformer_longformers_longform_longformerlayer |
59
+ | 17 | labelsmoothednllloss - label - labelsmoothingfactor - labels - labelsmoothing | 76 | 17_labelsmoothednllloss_label_labelsmoothingfactor_labels |
60
+ | 18 | benchmark - benchmarking - benchmarks - accuracy - evaluation | 73 | 18_benchmark_benchmarking_benchmarks_accuracy |
61
+ | 19 | wav2vec2 - wav2vec - wav2vec20 - wav2vec2forctc - wav2vec2xlrswav2vec2 | 67 | 19_wav2vec2_wav2vec_wav2vec20_wav2vec2forctc |
62
+ | 20 | flax - flaxelectraformaskedlm - flaxelectraforpretraining - flaxjax - flaxelectramodel | 51 | 20_flax_flaxelectraformaskedlm_flaxelectraforpretraining_flaxjax |
63
+ | 21 | configpath - configs - config - configuration - modelconfigs | 49 | 21_configpath_configs_config_configuration |
64
+ | 22 | logging - logs - log - logger - loghistory | 40 | 22_logging_logs_log_logger |
65
+ | 23 | cachedir - cache - cachedpath - caching - cached | 38 | 23_cachedir_cache_cachedpath_caching |
66
+ | 24 | wandbproject - wandb - sagemaker - sagemakertrainer - wandbcallback | 36 | 24_wandbproject_wandb_sagemaker_sagemakertrainer |
67
+ | 25 | notebook - notebooks - community - colab - t5 | 33 | 25_notebook_notebooks_community_colab |
68
+ | 26 | electra - electrapretrainedmodel - electraformaskedlm - electraformultiplechoice - electrafortokenclassification | 30 | 26_electra_electrapretrainedmodel_electraformaskedlm_electraformultiplechoice |
69
+ | 27 | layoutlm - layout - layoutlmtokenizer - layoutlmbaseuncased - tf | 25 | 27_layoutlm_layout_layoutlmtokenizer_layoutlmbaseuncased |
70
+ | 28 | pplm - pr - deprecated - variable - ppl | 15 | 28_pplm_pr_deprecated_variable |
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
+ * zeroshot_min_similarity: 0.7
86
+ * zeroshot_topic_list: None
87
+
88
+ ## Framework versions
89
+
90
+ * Numpy: 1.26.4
91
+ * HDBSCAN: 0.8.38.post1
92
+ * UMAP: 0.5.6
93
+ * Pandas: 2.1.4
94
+ * Scikit-Learn: 1.5.2
95
+ * Sentence-transformers: 3.1.1
96
+ * Transformers: 4.44.2
97
+ * Numba: 0.60.0
98
+ * Plotly: 5.24.1
99
+ * Python: 3.10.12
config.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "zeroshot_min_similarity": 0.7,
15
+ "zeroshot_topic_list": null,
16
+ "embedding_model": "sentence-transformers/all-MiniLM-L6-v2"
17
+ }
topic_embeddings.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:475a9f68cd641dad83bf377686eaac3cc71e65d7762ffcce4e071dcc7b6528cb
3
+ size 46168
topics.json ADDED
The diff for this file is too large to render. See raw diff