davanstrien HF staff commited on
Commit
379fb19
1 Parent(s): 9fc4405

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("davanstrien/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: 7235
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 | encoder - bert - tensorflow - decoder - output | 11 | -1_encoder_bert_tensorflow_decoder |
42
+ | 0 | tokenizer - tokenizers - tokenization - tokenize - berttokenizer | 2265 | 0_tokenizer_tokenizers_tokenization_tokenize |
43
+ | 1 | cuda - runtimeerror - conda - pytorch - tensorflow | 1513 | 1_cuda_runtimeerror_conda_pytorch |
44
+ | 2 | readmemd - readmetxt - readme - docstring - docstrings | 763 | 2_readmemd_readmetxt_readme_docstring |
45
+ | 3 | trainertrain - trainer - trainertfpy - trainers - training | 550 | 3_trainertrain_trainer_trainertfpy_trainers |
46
+ | 4 | rag - roberta - robertatokenizer - robertatokenizerfast - robertabase | 546 | 4_rag_roberta_robertatokenizer_robertatokenizerfast |
47
+ | 5 | modelcard - modelcards - card - model - cards | 473 | 5_modelcard_modelcards_card_model |
48
+ | 6 | importerror - transformerscli - transformers - transformerxl - transformer | 432 | 6_importerror_transformerscli_transformers_transformerxl |
49
+ | 7 | seq2seq - seq2seqtrainer - seq2seqdataset - runseq2seq - examplesseq2seq | 405 | 7_seq2seq_seq2seqtrainer_seq2seqdataset_runseq2seq |
50
+ | 8 | gpt2 - gpt2tokenizer - gpt2xl - gpt2tokenizerfast - gpt | 365 | 8_gpt2_gpt2tokenizer_gpt2xl_gpt2tokenizerfast |
51
+ | 9 | t5 - t5model - t5base - t5large - tf | 289 | 9_t5_t5model_t5base_t5large |
52
+ | 10 | tests - testing - speedup - test - testgeneratefp16 | 230 | 10_tests_testing_speedup_test |
53
+ | 11 | questionansweringpipeline - questionanswering - answering - questionasnwering - distilbertforquestionanswering | 138 | 11_questionansweringpipeline_questionanswering_answering_questionasnwering |
54
+ | 12 | ner - pipeline - pipelinener - pipelines - pipelineframework | 138 | 12_ner_pipeline_pipelinener_pipelines |
55
+ | 13 | deberta - debertav2 - debertav2initpy - debertatokenizer - distilbertmodel | 132 | 13_deberta_debertav2_debertav2initpy_debertatokenizer |
56
+ | 14 | onnxonnxruntime - onnx - onnxexport - 04onnxexport - 04onnxexportipynb | 110 | 14_onnxonnxruntime_onnx_onnxexport_04onnxexport |
57
+ | 15 | benchmark - benchmarks - accuracy - precision - comparison | 85 | 15_benchmark_benchmarks_accuracy_precision |
58
+ | 16 | labelsmoothingfactor - labelsmoothednllloss - labelsmoothing - labels - label | 79 | 16_labelsmoothingfactor_labelsmoothednllloss_labelsmoothing_labels |
59
+ | 17 | longformer - longformers - longform - longformerforqa - longformerlayer | 71 | 17_longformer_longformers_longform_longformerforqa |
60
+ | 18 | generationbeamsearchpy - generatebeamsearch - beamsearch - nonbeamsearch - beam | 60 | 18_generationbeamsearchpy_generatebeamsearch_beamsearch_nonbeamsearch |
61
+ | 19 | cachedir - cache - cachedpath - caching - cached | 58 | 19_cachedir_cache_cachedpath_caching |
62
+ | 20 | wav2vec2 - wav2vec - wav2vec20 - wav2vec2forctc - wav2vec2xlrswav2vec2 | 56 | 20_wav2vec2_wav2vec_wav2vec20_wav2vec2forctc |
63
+ | 21 | flax - flaxelectraformaskedlm - flaxelectraforpretraining - flaxjax - flaxelectramodel | 52 | 21_flax_flaxelectraformaskedlm_flaxelectraforpretraining_flaxjax |
64
+ | 22 | wandbproject - wandb - wandbcallback - wandbdisabled - wandbdisabledtrue | 49 | 22_wandbproject_wandb_wandbcallback_wandbdisabled |
65
+ | 23 | electra - electrapretrainedmodel - electraformaskedlm - electraformultiplechoice - electrafortokenclassification | 38 | 23_electra_electrapretrainedmodel_electraformaskedlm_electraformultiplechoice |
66
+ | 24 | layoutlm - layout - layoutlmtokenizer - layoutlmbaseuncased - tf | 24 | 24_layoutlm_layout_layoutlmtokenizer_layoutlmbaseuncased |
67
+ | 25 | notebook - notebooks - community - text - multilabel | 18 | 25_notebook_notebooks_community_text |
68
+ | 26 | dict - dictstr - returndict - parse - arguments | 18 | 26_dict_dictstr_returndict_parse |
69
+ | 27 | pplm - pr - deprecated - variable - ppl | 17 | 27_pplm_pr_deprecated_variable |
70
+ | 28 | isort - github - repo - version - setupcfg | 15 | 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
+
86
+ ## Framework versions
87
+
88
+ * Numpy: 1.22.4
89
+ * HDBSCAN: 0.8.29
90
+ * UMAP: 0.5.3
91
+ * Pandas: 1.5.3
92
+ * Scikit-Learn: 1.2.2
93
+ * Sentence-transformers: 2.2.2
94
+ * Transformers: 4.29.2
95
+ * Numba: 0.56.4
96
+ * Plotly: 5.13.1
97
+ * Python: 3.10.11
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:6ee90bc952a4bb1c2e81c78199d02f00aee2972504a0f214e4ed8f485ccf8764
3
+ size 46168
topics.json ADDED
The diff for this file is too large to render. See raw diff