noumanjavaid commited on
Commit
a2a9d63
1 Parent(s): dd5c5ab

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("noumanjavaid/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 | models - bert - model - tensorflow - tokenizers | 14 | -1_models_bert_model_tensorflow |
42
+ | 0 | tokenizer - tokenizers - tokenization - token - tokens | 2078 | 0_tokenizer_tokenizers_tokenization_token |
43
+ | 1 | pytorch - tensorflow - modelingutilspy - attributeerror - runtimeerror | 1886 | 1_pytorch_tensorflow_modelingutilspy_attributeerror |
44
+ | 2 | trainertrain - trainer - trainers - training - evaluateduringtraining | 696 | 2_trainertrain_trainer_trainers_training |
45
+ | 3 | summarization - summaries - summary - examples - sentencepiece | 636 | 3_summarization_summaries_summary_examples |
46
+ | 4 | gpt2tokenizer - gpt2 - gpt2tokenizerfast - gpt2model - gpt | 452 | 4_gpt2tokenizer_gpt2_gpt2tokenizerfast_gpt2model |
47
+ | 5 | modelcard - modelcards - card - model - models | 451 | 5_modelcard_modelcards_card_model |
48
+ | 6 | typos - typo - fix - correction - fixed | 446 | 6_typos_typo_fix_correction |
49
+ | 7 | readmemd - readmetxt - readme - modelcard - file | 284 | 7_readmemd_readmetxt_readme_modelcard |
50
+ | 8 | t5 - t5model - t5base - tf - t5large | 256 | 8_t5_t5model_t5base_tf |
51
+ | 9 | longformer - longformers - longformerformultiplechoice - longformertokenizerfast - attentions | 254 | 9_longformer_longformers_longformerformultiplechoice_longformertokenizerfast |
52
+ | 10 | seq2seq - seq2seqtrainer - seq2seqdataset - seq2seqfinetunepy - runseq2seq | 223 | 10_seq2seq_seq2seqtrainer_seq2seqdataset_seq2seqfinetunepy |
53
+ | 11 | pipeline - pipelines - ner - pipelinesentimentanalysis - nerpipeline | 209 | 11_pipeline_pipelines_ner_pipelinesentimentanalysis |
54
+ | 12 | ci - testing - tests - test - testgeneratefp16 | 175 | 12_ci_testing_tests_test |
55
+ | 13 | deprecate - deprecation - deprecated - warnings - warning | 136 | 13_deprecate_deprecation_deprecated_warnings |
56
+ | 14 | onnxonnxruntime - onnx - 04onnxexport - 04onnxexportipynb - benchmarkonnxexport | 129 | 14_onnxonnxruntime_onnx_04onnxexport_04onnxexportipynb |
57
+ | 15 | datacollatorforlanguagemodelingfile - datacollatorforlanguagemodeling - datacollatorforlanguagemodelling - datacollatorforpermutationlanguagemodeling - labelsmoothingfactor | 100 | 15_datacollatorforlanguagemodelingfile_datacollatorforlanguagemodeling_datacollatorforlanguagemodelling_datacollatorforpermutationlanguagemodeling |
58
+ | 16 | deberta - debertav2 - debertav2initpy - debertatokenizer - debertav2xxlargemnli | 73 | 16_deberta_debertav2_debertav2initpy_debertatokenizer |
59
+ | 17 | benchmark - benchmarking - benchmarks - comparison - results | 63 | 17_benchmark_benchmarking_benchmarks_comparison |
60
+ | 18 | generationbeamsearchpy - generatebeamsearch - generatebeamsearchoutputs - beamsearch - nonbeamsearch | 61 | 18_generationbeamsearchpy_generatebeamsearch_generatebeamsearchoutputs_beamsearch |
61
+ | 19 | wandbproject - wandb - wandbcallback - wandbdisabled - wandbdisabledtrue | 56 | 19_wandbproject_wandb_wandbcallback_wandbdisabled |
62
+ | 20 | wav2vec2 - wav2vec - wav2vec20 - wav2vec2forctc - wav2vec2xlrswav2vec2 | 54 | 20_wav2vec2_wav2vec_wav2vec20_wav2vec2forctc |
63
+ | 21 | flax - flaxelectraformaskedlm - flaxelectraforpretraining - flaxjax - flaxelectramodel | 49 | 21_flax_flaxelectraformaskedlm_flaxelectraforpretraining_flaxjax |
64
+ | 22 | configpath - configs - config - configuration - modelconfigs | 49 | 22_configpath_configs_config_configuration |
65
+ | 23 | logging - logs - log - logger - loggingfirststep | 45 | 23_logging_logs_log_logger |
66
+ | 24 | cachedir - cache - cachedpath - caching - cached | 34 | 24_cachedir_cache_cachedpath_caching |
67
+ | 25 | electra - electrapretrainedmodel - electraformaskedlm - electraformultiplechoice - electrafortokenclassification | 34 | 25_electra_electrapretrainedmodel_electraformaskedlm_electraformultiplechoice |
68
+ | 26 | layoutlm - layoutlmtokenizer - layout - layoutlmbaseuncased - tf | 23 | 26_layoutlm_layoutlmtokenizer_layout_layoutlmbaseuncased |
69
+ | 27 | dict - dictstr - returndict - parse - arguments | 17 | 27_dict_dictstr_returndict_parse |
70
+ | 28 | pplm - pr - deprecated - variable - ppl | 17 | 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.25.2
91
+ * HDBSCAN: 0.8.37
92
+ * UMAP: 0.5.6
93
+ * Pandas: 2.0.3
94
+ * Scikit-Learn: 1.2.2
95
+ * Sentence-transformers: 3.0.1
96
+ * Transformers: 4.41.2
97
+ * Numba: 0.58.1
98
+ * Plotly: 5.15.0
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:3410a9b79973e667ebfef655bac1e5f3c9523bb090b864de4658c992c544a1e9
3
+ size 46168
topics.json ADDED
The diff for this file is too large to render. See raw diff