Add BERTopic model
Browse files- README.md +97 -0
- config.json +15 -0
- topic_embeddings.safetensors +3 -0
- 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("u571/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 | tensorflow - pytorch - tokenizers - tokenizer - bert | 10 | -1_tensorflow_pytorch_tokenizers_tokenizer |
|
42 |
+
| 0 | tokenizer - tokenizers - tokenization - tokenize - token | 2107 | 0_tokenizer_tokenizers_tokenization_tokenize |
|
43 |
+
| 1 | cuda - memory - gpu - gpus - tensorflow | 1271 | 1_cuda_memory_gpu_gpus |
|
44 |
+
| 2 | tf - trainer - tf2 - tpu - trainertrain | 901 | 2_tf_trainer_tf2_tpu |
|
45 |
+
| 3 | summarization - summaries - summary - sentences - sentencepiece | 543 | 3_summarization_summaries_summary_sentences |
|
46 |
+
| 4 | modelcard - modelcards - card - model - cards | 483 | 4_modelcard_modelcards_card_model |
|
47 |
+
| 5 | gpt2 - gpt2tokenizer - gpt2tokenizerfast - gpt2xl - gpt | 431 | 5_gpt2_gpt2tokenizer_gpt2tokenizerfast_gpt2xl |
|
48 |
+
| 6 | xlnet - xlnetlmheadmodel - xlm - xlmr - xla | 423 | 6_xlnet_xlnetlmheadmodel_xlm_xlmr |
|
49 |
+
| 7 | typos - typo - fix - fixed - correction | 334 | 7_typos_typo_fix_fixed |
|
50 |
+
| 8 | s2s - exampless2s - seq2seqtrainer - seq2seq - runseq2seq | 324 | 8_s2s_exampless2s_seq2seqtrainer_seq2seq |
|
51 |
+
| 9 | testing - tests - test - slow - ci | 316 | 9_testing_tests_test_slow |
|
52 |
+
| 10 | readmemd - readmetxt - readme - modelcard - file | 296 | 10_readmemd_readmetxt_readme_modelcard |
|
53 |
+
| 11 | transformerscli - transformers - transformer - transformerxl - importerror | 262 | 11_transformerscli_transformers_transformer_transformerxl |
|
54 |
+
| 12 | ner - pipeline - pipelines - nerpipeline - fillmaskpipeline | 223 | 12_ner_pipeline_pipelines_nerpipeline |
|
55 |
+
| 13 | rag - ragtokenforgeneration - ragmodel - ragsequenceforgeneration - tokenizer | 166 | 13_rag_ragtokenforgeneration_ragmodel_ragsequenceforgeneration |
|
56 |
+
| 14 | trainertrain - checkpoint - checkpoints - trainer - training | 146 | 14_trainertrain_checkpoint_checkpoints_trainer |
|
57 |
+
| 15 | datacollatorforlanguagemodeling - datacollatorforpermutationlanguagemodeling - datacollatorforlanguagemodelling - labelsmoothingfactor - maskedlmlabels | 128 | 15_datacollatorforlanguagemodeling_datacollatorforpermutationlanguagemodeling_datacollatorforlanguagemodelling_labelsmoothingfactor |
|
58 |
+
| 16 | onnx - onnxonnxruntime - onnxexport - 04onnxexport - 04onnxexportipynb | 99 | 16_onnx_onnxonnxruntime_onnxexport_04onnxexport |
|
59 |
+
| 17 | longformer - longformers - longform - longformerforqa - longformerlayer | 84 | 17_longformer_longformers_longform_longformerforqa |
|
60 |
+
| 18 | benchmark - benchmarks - results - datasets - v100a100 | 78 | 18_benchmark_benchmarks_results_datasets |
|
61 |
+
| 19 | generationbeamsearchpy - generatebeamsearch - beamsearch - nonbeamsearch - beam | 75 | 19_generationbeamsearchpy_generatebeamsearch_beamsearch_nonbeamsearch |
|
62 |
+
| 20 | wav2vec2 - wav2vec - wav2vec20 - wav2vec2forctc - wav2vec2xlrswav2vec2 | 71 | 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 | 47 | 22_wandbproject_wandb_wandbcallback_wandbdisabled |
|
65 |
+
| 23 | cachedir - cache - cachedpath - caching - cached | 37 | 23_cachedir_cache_cachedpath_caching |
|
66 |
+
| 24 | layoutlm - layout - layoutlmtokenizer - layoutlmbaseuncased - tf | 33 | 24_layoutlm_layout_layoutlmtokenizer_layoutlmbaseuncased |
|
67 |
+
| 25 | dict - dictstr - returndict - parse - arguments | 18 | 25_dict_dictstr_returndict_parse |
|
68 |
+
| 26 | pplm - pr - deprecated - variable - ppl | 16 | 26_pplm_pr_deprecated_variable |
|
69 |
+
| 27 | colab - cola - crashes - crash - tcmalloc | 14 | 27_colab_cola_crashes_crash |
|
70 |
+
| 28 | ctrl - ctrlsum - shortcuts - model - navigate | 12 | 28_ctrl_ctrlsum_shortcuts_model |
|
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.23.5
|
89 |
+
* HDBSCAN: 0.8.33
|
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.32.0
|
95 |
+
* Numba: 0.56.4
|
96 |
+
* Plotly: 5.15.0
|
97 |
+
* Python: 3.10.12
|
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:f5dbb3c69e843726a86976f6daaba897e33e67c72b992a7b891f88a95249de76
|
3 |
+
size 46168
|
topics.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|