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("Adamyu/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 - tf - pytorch - tensorflow - t5 | 12 | -1_bert_tf_pytorch_tensorflow |
|
42 |
+
| 0 | tokenizer - tokenizers - tokenization - tokenize - token | 2218 | 0_tokenizer_tokenizers_tokenization_tokenize |
|
43 |
+
| 1 | cuda - cuda0 - memory - tensorflow - ram | 1617 | 1_cuda_cuda0_memory_tensorflow |
|
44 |
+
| 2 | modelcard - modelcards - card - model - cards | 582 | 2_modelcard_modelcards_card_model |
|
45 |
+
| 3 | readmemd - readmetxt - readme - file - docstring | 536 | 3_readmemd_readmetxt_readme_file |
|
46 |
+
| 4 | gpt2 - gpt2tokenizer - gpt2tokenizerfast - gpt2model - gpt2xl | 490 | 4_gpt2_gpt2tokenizer_gpt2tokenizerfast_gpt2model |
|
47 |
+
| 5 | squaddataset - squad - squadpy - dataset - datasets | 430 | 5_squaddataset_squad_squadpy_dataset |
|
48 |
+
| 6 | summarization - summaries - sentences - sentencepiece - nlp | 387 | 6_summarization_summaries_sentences_sentencepiece |
|
49 |
+
| 7 | s2s - s2t - exampless2s - seq2seq - seq2seqtrainer | 335 | 7_s2s_s2t_exampless2s_seq2seq |
|
50 |
+
| 8 | trainertrain - trainer - trainerevaluate - trainers - training | 301 | 8_trainertrain_trainer_trainerevaluate_trainers |
|
51 |
+
| 9 | t5 - t5model - t5base - tf - t5large | 266 | 9_t5_t5model_t5base_tf |
|
52 |
+
| 10 | ci - testing - tests - speedup - test | 254 | 10_ci_testing_tests_speedup |
|
53 |
+
| 11 | importerror - transformerscli - transformers - transformer - transformerxl | 202 | 11_importerror_transformerscli_transformers_transformer |
|
54 |
+
| 12 | pipeline - pipelines - ner - nerpipeline - fillmaskpipeline | 168 | 12_pipeline_pipelines_ner_nerpipeline |
|
55 |
+
| 13 | glue - gluepy - glueconvertexamplestofeatures - huggingfacetransformers - huggingfacemaster | 164 | 13_glue_gluepy_glueconvertexamplestofeatures_huggingfacetransformers |
|
56 |
+
| 14 | questionansweringpipeline - questionanswering - answering - tfalbertforquestionanswering - questionasnwering | 162 | 14_questionansweringpipeline_questionanswering_answering_tfalbertforquestionanswering |
|
57 |
+
| 15 | deprecate - deprecation - warnings - deprecated - warning | 135 | 15_deprecate_deprecation_warnings_deprecated |
|
58 |
+
| 16 | onnx - onnxonnxruntime - onnxexport - 04onnxexport - 04onnxexportipynb | 132 | 16_onnx_onnxonnxruntime_onnxexport_04onnxexport |
|
59 |
+
| 17 | flaxbertmodel - flaxbertformaskedlm - flax - flaxelectraforpretraining - flaxelectraformaskedlm | 96 | 17_flaxbertmodel_flaxbertformaskedlm_flax_flaxelectraforpretraining |
|
60 |
+
| 18 | precision - accuracy - tf - tfbertfortokenclassification - dtypefloat32 | 95 | 18_precision_accuracy_tf_tfbertfortokenclassification |
|
61 |
+
| 19 | generationbeamsearchpy - generatebeamsearch - beamsearch - nonbeamsearch - beam | 81 | 19_generationbeamsearchpy_generatebeamsearch_beamsearch_nonbeamsearch |
|
62 |
+
| 20 | longformer - longformers - longform - longformerlayer - longformermodel | 74 | 20_longformer_longformers_longform_longformerlayer |
|
63 |
+
| 21 | cachedir - cache - cachedpath - caching - cached | 65 | 21_cachedir_cache_cachedpath_caching |
|
64 |
+
| 22 | wandbproject - wandb - wandbcallback - wandbdisabled - wandbdisabledtrue | 40 | 22_wandbproject_wandb_wandbcallback_wandbdisabled |
|
65 |
+
| 23 | layoutlm - layoutlmtokenizer - layout - layoutlmbaseuncased - template | 38 | 23_layoutlm_layoutlmtokenizer_layout_layoutlmbaseuncased |
|
66 |
+
| 24 | notebook - notebooks - blenderbot3b - community - blenderbot | 32 | 24_notebook_notebooks_blenderbot3b_community |
|
67 |
+
| 25 | electra - electrapretrainedmodel - electraformaskedlm - electraformultiplechoice - electrafortokenclassification | 30 | 25_electra_electrapretrainedmodel_electraformaskedlm_electraformultiplechoice |
|
68 |
+
| 26 | colab - cola - fixed - fix - links | 25 | 26_colab_cola_fixed_fix |
|
69 |
+
| 27 | pplm - pr - deprecated - variable - attributeerror | 20 | 27_pplm_pr_deprecated_variable |
|
70 |
+
| 28 | isort - blackisortflake8 - github - repo - version | 13 | 28_isort_blackisortflake8_github_repo |
|
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.5
|
91 |
+
* Pandas: 1.5.3
|
92 |
+
* Scikit-Learn: 1.2.2
|
93 |
+
* Sentence-transformers: 2.2.2
|
94 |
+
* Transformers: 4.35.2
|
95 |
+
* Numba: 0.58.1
|
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:d29428c6e323dfbb8e2fd3beda2a227fd1b4ad03189717190a093818dbd4e1f8
|
3 |
+
size 46168
|
topics.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|