Commit
·
ec65811
1
Parent(s):
a08335f
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("FlorenceAndTheMachine/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 - tensorflow - pretrained - model - pytorch | 14 | -1_bert_tensorflow_pretrained_model |
|
42 |
+
| 0 | bertforsequenceclassification - bart - t5 - tokenizers - tokenizer | 2023 | 0_bertforsequenceclassification_bart_t5_tokenizers |
|
43 |
+
| 1 | trainertrain - trainer - pretrained - frompretrained - training | 1809 | 1_trainertrain_trainer_pretrained_frompretrained |
|
44 |
+
| 2 | s2s - seq2seqtrainer - seq2seq - examplesseq2seq - runseq2seqpy | 1258 | 2_s2s_seq2seqtrainer_seq2seq_examplesseq2seq |
|
45 |
+
| 3 | modelcard - modelcards - card - model - cards | 603 | 3_modelcard_modelcards_card_model |
|
46 |
+
| 4 | attributeerror - typeerror - valueerror - error - runmlmpy | 410 | 4_attributeerror_typeerror_valueerror_error |
|
47 |
+
| 5 | xlnet - xlnetmodel - xlnetlmheadmodel - xlarge - xlm | 360 | 5_xlnet_xlnetmodel_xlnetlmheadmodel_xlarge |
|
48 |
+
| 6 | gpt2 - gpt2tokenizer - gpt2xl - gpt2tokenizerfast - gpt | 289 | 6_gpt2_gpt2tokenizer_gpt2xl_gpt2tokenizerfast |
|
49 |
+
| 7 | readmemd - readmetxt - readme - file - camembertbasereadmemd | 279 | 7_readmemd_readmetxt_readme_file |
|
50 |
+
| 8 | typos - typo - fix - correction - fixed | 261 | 8_typos_typo_fix_correction |
|
51 |
+
| 9 | transformerscli - transformers - transformer - transformerxl - importerror | 245 | 9_transformerscli_transformers_transformer_transformerxl |
|
52 |
+
| 10 | ner - pipeline - pipelines - nerpipeline - fillmaskpipeline | 199 | 10_ner_pipeline_pipelines_nerpipeline |
|
53 |
+
| 11 | glue - gluepy - glueconvertexamplestofeatures - huggingfacetransformers - huggingfacemaster | 160 | 11_glue_gluepy_glueconvertexamplestofeatures_huggingfacetransformers |
|
54 |
+
| 12 | questionansweringpipeline - questionanswering - answering - tfalbertforquestionanswering - distilbertforquestionanswering | 157 | 12_questionansweringpipeline_questionanswering_answering_tfalbertforquestionanswering |
|
55 |
+
| 13 | logging - logs - log - onlog - logger | 136 | 13_logging_logs_log_onlog |
|
56 |
+
| 14 | onnx - onnxonnxruntime - onnxexport - 04onnxexport - 04onnxexportipynb | 130 | 14_onnx_onnxonnxruntime_onnxexport_04onnxexport |
|
57 |
+
| 15 | benchmark - benchmarks - accuracy - evaluation - metrics | 86 | 15_benchmark_benchmarks_accuracy_evaluation |
|
58 |
+
| 16 | labelsmoothednllloss - labelsmoothingfactor - label - labels - labelsmoothing | 84 | 16_labelsmoothednllloss_labelsmoothingfactor_label_labels |
|
59 |
+
| 17 | longformer - longformers - longform - longformerforqa - longformerlayer | 83 | 17_longformer_longformers_longform_longformerforqa |
|
60 |
+
| 18 | generationbeamsearchpy - generatebeamsearch - generatebeamsearchoutputs - beamsearch - nonbeamsearch | 77 | 18_generationbeamsearchpy_generatebeamsearch_generatebeamsearchoutputs_beamsearch |
|
61 |
+
| 19 | wav2vec2 - wav2vec - wav2vec20 - wav2vec2forctc - wav2vec2xlrswav2vec2 | 60 | 19_wav2vec2_wav2vec_wav2vec20_wav2vec2forctc |
|
62 |
+
| 20 | flax - flaxelectraformaskedlm - flaxelectraforpretraining - flaxjax - flaxelectramodel | 48 | 20_flax_flaxelectraformaskedlm_flaxelectraforpretraining_flaxjax |
|
63 |
+
| 21 | cachedir - cache - cachedpath - caching - cached | 42 | 21_cachedir_cache_cachedpath_caching |
|
64 |
+
| 22 | notebook - notebooks - community - sagemakertrainer - documentation | 37 | 22_notebook_notebooks_community_sagemakertrainer |
|
65 |
+
| 23 | wandbproject - wandb - wandbcallback - wandbdisabled - wandbdisabledtrue | 34 | 23_wandbproject_wandb_wandbcallback_wandbdisabled |
|
66 |
+
| 24 | add - bort - added - py7zr - update | 33 | 24_add_bort_added_py7zr |
|
67 |
+
| 25 | electra - electraformaskedlm - electraformultiplechoice - electrafortokenclassification - electraforsequenceclassification | 30 | 25_electra_electraformaskedlm_electraformultiplechoice_electrafortokenclassification |
|
68 |
+
| 26 | layoutlm - layout - layoutlmtokenizer - layoutlmbaseuncased - tf | 19 | 26_layoutlm_layout_layoutlmtokenizer_layoutlmbaseuncased |
|
69 |
+
| 27 | isort - blackisortflake8 - dependencies - github - matplotlib | 17 | 27_isort_blackisortflake8_dependencies_github |
|
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 |
+
|
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.33.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:16b7119933e9738f1d58b2bb335f774fff26efd6f1bc72b871b8bfb5a7dc8ba1
|
3 |
+
size 46168
|
topics.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|