Add BERTopic model
Browse files- README.md +99 -0
- config.json +17 -0
- topic_embeddings.safetensors +3 -0
- 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("Ruslan10/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 - pytorch - pretrained - models | 11 | -1_bert_tensorflow_pytorch_pretrained |
|
| 42 |
+
| 0 | bertforsequenceclassification - encoderdecoder - berttokenizer - tokenizer - bert | 2042 | 0_bertforsequenceclassification_encoderdecoder_berttokenizer_tokenizer |
|
| 43 |
+
| 1 | pytorch - tensorflow - modelingutilspy - tensors - tensor | 1903 | 1_pytorch_tensorflow_modelingutilspy_tensors |
|
| 44 |
+
| 2 | seq2seqtrainer - seq2seq - testing - tests - prepareseq2seqbatch | 735 | 2_seq2seqtrainer_seq2seq_testing_tests |
|
| 45 |
+
| 3 | docstring - docstrings - readmetxt - doc - readmemd | 603 | 3_docstring_docstrings_readmetxt_doc |
|
| 46 |
+
| 4 | gpt2 - gpt2tokenizer - gpt2tokenizerfast - gpt - gpt2model | 513 | 4_gpt2_gpt2tokenizer_gpt2tokenizerfast_gpt |
|
| 47 |
+
| 5 | trainertrain - trainer - trainers - training - evaluateduringtraining | 442 | 5_trainertrain_trainer_trainers_training |
|
| 48 |
+
| 6 | modelcard - modelcards - card - model - models | 440 | 6_modelcard_modelcards_card_model |
|
| 49 |
+
| 7 | albertforpretraining - xlnet - xlnetlmheadmodel - albertbasev2 - albertformaskedlm | 436 | 7_albertforpretraining_xlnet_xlnetlmheadmodel_albertbasev2 |
|
| 50 |
+
| 8 | t5 - t5model - tf - t5base - tf2 | 359 | 8_t5_t5model_tf_t5base |
|
| 51 |
+
| 9 | transformerscli - transformers - transformer - transformerxl - importerror | 259 | 9_transformerscli_transformers_transformer_transformerxl |
|
| 52 |
+
| 10 | ner - pipeline - pipelines - nerpipeline - fillmaskpipeline | 197 | 10_ner_pipeline_pipelines_nerpipeline |
|
| 53 |
+
| 11 | questionansweringpipeline - questionanswering - answering - tfalbertforquestionanswering - questionasnwering | 159 | 11_questionansweringpipeline_questionanswering_answering_tfalbertforquestionanswering |
|
| 54 |
+
| 12 | longformer - longform - longformers - longformerlayer - longformerformultiplechoice | 135 | 12_longformer_longform_longformers_longformerlayer |
|
| 55 |
+
| 13 | onnx - onnxonnxruntime - onnxexport - 04onnxexport - 04onnxexportipynb | 117 | 13_onnx_onnxonnxruntime_onnxexport_04onnxexport |
|
| 56 |
+
| 14 | generationbeamsearchpy - generatebeamsearch - generatebeamsearchoutputs - beamsearch - nonbeamsearch | 95 | 14_generationbeamsearchpy_generatebeamsearch_generatebeamsearchoutputs_beamsearch |
|
| 57 |
+
| 15 | benchmark - benchmarks - accuracy - evaluation - metrics | 90 | 15_benchmark_benchmarks_accuracy_evaluation |
|
| 58 |
+
| 16 | huggingfacemaster - huggingfacetokenizers297 - huggingface - huggingfacetransformers - huggingfacetransformer | 83 | 16_huggingfacemaster_huggingfacetokenizers297_huggingface_huggingfacetransformers |
|
| 59 |
+
| 17 | datacollatorforlanguagemodelingfile - datacollatorforlanguagemodeling - datacollatorforlanguagemodelling - datacollatorforpermutationlanguagemodeling - datacollatorfornextsentenceprediction | 77 | 17_datacollatorforlanguagemodelingfile_datacollatorforlanguagemodeling_datacollatorforlanguagemodelling_datacollatorforpermutationlanguagemodeling |
|
| 60 |
+
| 18 | flax - flaxelectraformaskedlm - flaxelectraforpretraining - flaxjax - flaxelectramodel | 52 | 18_flax_flaxelectraformaskedlm_flaxelectraforpretraining_flaxjax |
|
| 61 |
+
| 19 | notebook - notebooks - community - colab - t5 | 48 | 19_notebook_notebooks_community_colab |
|
| 62 |
+
| 20 | wandbproject - wandb - sagemaker - sagemakertrainer - wandbcallback | 39 | 20_wandbproject_wandb_sagemaker_sagemakertrainer |
|
| 63 |
+
| 21 | cachedir - cache - cachedpath - caching - cached | 34 | 21_cachedir_cache_cachedpath_caching |
|
| 64 |
+
| 22 | electra - electrapretrainedmodel - electraformaskedlm - electraformultiplechoice - electrafortokenclassification | 32 | 22_electra_electrapretrainedmodel_electraformaskedlm_electraformultiplechoice |
|
| 65 |
+
| 23 | layoutlm - layout - layoutlmtokenizer - layoutlmbaseuncased - tf | 23 | 23_layoutlm_layout_layoutlmtokenizer_layoutlmbaseuncased |
|
| 66 |
+
| 24 | dict - dictstr - returndict - parse - arguments | 18 | 24_dict_dictstr_returndict_parse |
|
| 67 |
+
| 25 | pplm - pr - deprecated - variable - ppl | 18 | 25_pplm_pr_deprecated_variable |
|
| 68 |
+
| 26 | isort - blackisortflake8 - github - repo - version | 15 | 26_isort_blackisortflake8_github_repo |
|
| 69 |
+
| 27 | blenderbot - blenderbot3b - blenderbotforcausallm - bot - boto3 | 14 | 27_blenderbot_blenderbot3b_blenderbotforcausallm_bot |
|
| 70 |
+
| 28 | indexerror - index - missingindex - indices - runtimeerror | 11 | 28_indexerror_index_missingindex_indices |
|
| 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: 2.0.2
|
| 91 |
+
* HDBSCAN: 0.8.41
|
| 92 |
+
* UMAP: 0.5.11
|
| 93 |
+
* Pandas: 2.2.2
|
| 94 |
+
* Scikit-Learn: 1.6.1
|
| 95 |
+
* Sentence-transformers: 5.2.0
|
| 96 |
+
* Transformers: 4.57.6
|
| 97 |
+
* Numba: 0.60.0
|
| 98 |
+
* Plotly: 5.24.1
|
| 99 |
+
* Python: 3.12.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:615c8ebda2c61da8f5022052d50655416ebd6b65da1da19a34bc175de2705120
|
| 3 |
+
size 46168
|
topics.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|