mark230271 commited on
Commit
b53c390
1 Parent(s): f9eec17

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("mark230271/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 | tokenizer - bert - tokenizers - pytorch - tensorflow | 11 | -1_tokenizer_bert_tokenizers_pytorch |
42
+ | 0 | tokenizer - tokenizers - tokenization - berttokenizer - bart | 2376 | 0_tokenizer_tokenizers_tokenization_berttokenizer |
43
+ | 1 | cuda - gpt2 - gpt - gpus - gpu | 1879 | 1_cuda_gpt2_gpt_gpus |
44
+ | 2 | modelcard - modelcards - card - model - models | 735 | 2_modelcard_modelcards_card_model |
45
+ | 3 | transformerscli - transformers - transformer - transformerxl - importerror | 412 | 3_transformerscli_transformers_transformer_transformerxl |
46
+ | 4 | typeerror - attributeerror - valueerror - error - errors | 385 | 4_typeerror_attributeerror_valueerror_error |
47
+ | 5 | trainertrain - trainer - trainerevaluate - trainers - training | 330 | 5_trainertrain_trainer_trainerevaluate_trainers |
48
+ | 6 | seq2seq - seq2seqtrainer - s2s - runseq2seq - seq2seqdataset | 319 | 6_seq2seq_seq2seqtrainer_s2s_runseq2seq |
49
+ | 7 | typos - typo - fix - correction - fixed | 306 | 7_typos_typo_fix_correction |
50
+ | 8 | ci - testing - test - tests - circleci | 282 | 8_ci_testing_test_tests |
51
+ | 9 | readmemd - readmetxt - readme - file - camembertbasereadmemd | 255 | 9_readmemd_readmetxt_readme_file |
52
+ | 10 | t5 - t5model - tf - t5base - t5large | 255 | 10_t5_t5model_tf_t5base |
53
+ | 11 | generationbeamsearchpy - beamsearch - groupbeamsearch - beam - search | 218 | 11_generationbeamsearchpy_beamsearch_groupbeamsearch_beam |
54
+ | 12 | flax - distilbertmodel - flaubert - deberta - model | 185 | 12_flax_distilbertmodel_flaubert_deberta |
55
+ | 13 | ner - pipeline - pipelines - nerpipeline - fillmaskpipeline | 177 | 13_ner_pipeline_pipelines_nerpipeline |
56
+ | 14 | questionansweringpipeline - tfalbertforquestionanswering - questionanswering - distilbertforquestionanswering - answering | 161 | 14_questionansweringpipeline_tfalbertforquestionanswering_questionanswering_distilbertforquestionanswering |
57
+ | 15 | huggingfacetransformers - huggingface - hugging - gluepy - gluebenchmarkcom | 133 | 15_huggingfacetransformers_huggingface_hugging_gluepy |
58
+ | 16 | onnx - onnxonnxruntime - onnxexport - 04onnxexport - 04onnxexportipynb | 130 | 16_onnx_onnxonnxruntime_onnxexport_04onnxexport |
59
+ | 17 | labelsmoothednllloss - labelsmoothingfactor - label - labels - labelsmoothing | 96 | 17_labelsmoothednllloss_labelsmoothingfactor_label_labels |
60
+ | 18 | longformer - longformers - longform - longformerlayer - longformermodel | 73 | 18_longformer_longformers_longform_longformerlayer |
61
+ | 19 | configpath - configs - config - configuration - modelconfigs | 59 | 19_configpath_configs_config_configuration |
62
+ | 20 | wandbproject - wandb - sagemaker - sagemakertrainer - wandbcallback | 45 | 20_wandbproject_wandb_sagemaker_sagemakertrainer |
63
+ | 21 | cachedir - cache - cachedpath - caching - cached | 33 | 21_cachedir_cache_cachedpath_caching |
64
+ | 22 | notebook - notebooks - community - colab - t5 | 33 | 22_notebook_notebooks_community_colab |
65
+ | 23 | electra - electrapretrainedmodel - electraformaskedlm - electraformultiplechoice - electrafortokenclassification | 30 | 23_electra_electrapretrainedmodel_electraformaskedlm_electraformultiplechoice |
66
+ | 24 | layoutlm - layout - layoutlmtokenizer - layoutlmbaseuncased - tf | 24 | 24_layoutlm_layout_layoutlmtokenizer_layoutlmbaseuncased |
67
+ | 25 | isort - blackisortflake8 - github - repo - version | 18 | 25_isort_blackisortflake8_github_repo |
68
+ | 26 | pplm - pr - deprecated - variable - ppl | 14 | 26_pplm_pr_deprecated_variable |
69
+ | 27 | indexerror - index - missingindex - indices - runtimeerror | 14 | 27_indexerror_index_missingindex_indices |
70
+ | 28 | ga - fork - forks - forked - push | 12 | 28_ga_fork_forks_forked |
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.33
92
+ * UMAP: 0.5.6
93
+ * Pandas: 2.0.3
94
+ * Scikit-Learn: 1.2.2
95
+ * Sentence-transformers: 2.6.1
96
+ * Transformers: 4.38.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:cd7a28d750f0485fece302c1f7673bfc25f7ed98e5b12bfbbede3d5bd8e38aee
3
+ size 46168
topics.json ADDED
The diff for this file is too large to render. See raw diff