FelipeSarmento commited on
Commit
412e06f
1 Parent(s): 171a2c3

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("FelipeSarmento/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 - model - input - models - layer | 11 | -1_bert_model_input_models |
42
+ | 0 | encoderdecoder - encoderdecodermodel - encoder - decoder - tokenizers | 2113 | 0_encoderdecoder_encoderdecodermodel_encoder_decoder |
43
+ | 1 | trainertrain - trainer - trainingarguments - pytorch - training | 1753 | 1_trainertrain_trainer_trainingarguments_pytorch |
44
+ | 2 | importerror - attributeerror - valueerror - typeerror - indexerror | 1248 | 2_importerror_attributeerror_valueerror_typeerror |
45
+ | 3 | modelcard - modelcards - card - model - models | 472 | 3_modelcard_modelcards_card_model |
46
+ | 4 | doc - typos - docstring - docs - typo | 458 | 4_doc_typos_docstring_docs |
47
+ | 5 | xlnetmodel - xlnet - xlnetlmheadmodel - xlm - xlarge | 358 | 5_xlnetmodel_xlnet_xlnetlmheadmodel_xlm |
48
+ | 6 | gpt2 - gpt2tokenizer - gpt2xl - gpt2tokenizerfast - gpt | 301 | 6_gpt2_gpt2tokenizer_gpt2xl_gpt2tokenizerfast |
49
+ | 7 | readmemd - modelcard - readmetxt - readme - file | 278 | 7_readmemd_modelcard_readmetxt_readme |
50
+ | 8 | ci - testing - tests - speedup - slow | 262 | 8_ci_testing_tests_speedup |
51
+ | 9 | transformerscli - transformers - transformer - transformerxl - importerror | 245 | 9_transformerscli_transformers_transformer_transformerxl |
52
+ | 10 | s2s - s2t - s2sdistill - s2strainer - exampless2s | 238 | 10_s2s_s2t_s2sdistill_s2strainer |
53
+ | 11 | trainertrain - trainer - logging - training - feattrainer | 212 | 11_trainertrain_trainer_logging_training |
54
+ | 12 | questionansweringpipeline - distilbertforquestionanswering - answering - questionanswering - tfalbertforquestionanswering | 139 | 12_questionansweringpipeline_distilbertforquestionanswering_answering_questionanswering |
55
+ | 13 | ner - pipeline - pipelines - nerpipeline - fixpipeline | 127 | 13_ner_pipeline_pipelines_nerpipeline |
56
+ | 14 | longformer - longformers - longform - longformerforqa - longformerlayer | 126 | 14_longformer_longformers_longform_longformerforqa |
57
+ | 15 | label - labelsmoothingfactor - labels - labelsmoothing - labellist | 116 | 15_label_labelsmoothingfactor_labels_labelsmoothing |
58
+ | 16 | onnxonnxruntime - onnx - onnxexport - 04onnxexport - 04onnxexportipynb | 101 | 16_onnxonnxruntime_onnx_onnxexport_04onnxexport |
59
+ | 17 | generationbeamsearchpy - generatebeamsearch - generatebeamsearchoutputs - beamsearch - nonbeamsearch | 86 | 17_generationbeamsearchpy_generatebeamsearch_generatebeamsearchoutputs_beamsearch |
60
+ | 18 | flax - flaxelectraformaskedlm - flaxelectraforpretraining - flaxjax - flaxelectramodel | 55 | 18_flax_flaxelectraformaskedlm_flaxelectraforpretraining_flaxjax |
61
+ | 19 | configpath - configs - config - configuration - modelconfigs | 49 | 19_configpath_configs_config_configuration |
62
+ | 20 | amp - tf - electrapretrainedmodel - tflongformer - modelingelectra | 47 | 20_amp_tf_electrapretrainedmodel_tflongformer |
63
+ | 21 | wandbproject - wandb - wandbcallback - wandbdisabled - wandbdisabledtrue | 39 | 21_wandbproject_wandb_wandbcallback_wandbdisabled |
64
+ | 22 | cachedir - cache - cachedpath - caching - cached | 37 | 22_cachedir_cache_cachedpath_caching |
65
+ | 23 | notebook - notebooks - community - blenderbot3b - blenderbot | 32 | 23_notebook_notebooks_community_blenderbot3b |
66
+ | 24 | adamw - adam - adambetas - trainingargs - wip | 30 | 24_adamw_adam_adambetas_trainingargs |
67
+ | 25 | pplm - pr - deprecated - variable - ppl | 24 | 25_pplm_pr_deprecated_variable |
68
+ | 26 | layoutlm - layoutlmtokenizer - layout - layoutlmbaseuncased - tf | 15 | 26_layoutlm_layoutlmtokenizer_layout_layoutlmbaseuncased |
69
+ | 27 | closed - licens - license - deleted - uss | 14 | 27_closed_licens_license_deleted |
70
+ | 28 | isort - github - repo - version - setupcfg | 14 | 28_isort_github_repo_version |
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.33
92
+ * UMAP: 0.5.5
93
+ * Pandas: 2.2.2
94
+ * Scikit-Learn: 1.4.2
95
+ * Sentence-transformers: 2.7.0
96
+ * Transformers: 4.39.3
97
+ * Numba: 0.59.1
98
+ * Plotly: 5.21.0
99
+ * Python: 3.11.0
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:aeccaa1b4ce1276c1d5c049be69e6fd2f845323765faf60721ca28de48fa187a
3
+ size 46168
topics.json ADDED
The diff for this file is too large to render. See raw diff