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("lbhjvh14/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 | pretrained - tokenizer - tensorflow - tokenizers - tf | 11 | -1_pretrained_tokenizer_tensorflow_tokenizers |
|
| 42 |
+
| 0 | tokenizer - tokenizers - tokenization - tokenize - token | 2407 | 0_tokenizer_tokenizers_tokenization_tokenize |
|
| 43 |
+
| 1 | cuda - memory - tensorflow - pytorch - gpu | 1379 | 1_cuda_memory_tensorflow_pytorch |
|
| 44 |
+
| 2 | longformer - longformers - longformertokenizerfast - longformerformultiplechoice - tf | 791 | 2_longformer_longformers_longformertokenizerfast_longformerformultiplechoice |
|
| 45 |
+
| 3 | modelcard - modelcards - card - model - cards | 510 | 3_modelcard_modelcards_card_model |
|
| 46 |
+
| 4 | summarization - summaries - summary - sentences - text | 431 | 4_summarization_summaries_summary_sentences |
|
| 47 |
+
| 5 | s2s - seq2seq - runseq2seq - eval - examplesseq2seq | 405 | 5_s2s_seq2seq_runseq2seq_eval |
|
| 48 |
+
| 6 | squaddataset - attributeerror - squadpy - valueerror - modulenotfounderror | 381 | 6_squaddataset_attributeerror_squadpy_valueerror |
|
| 49 |
+
| 7 | typos - typo - doc - docstring - fix | 324 | 7_typos_typo_doc_docstring |
|
| 50 |
+
| 8 | readmemd - readmetxt - readme - modelcard - file | 299 | 8_readmemd_readmetxt_readme_modelcard |
|
| 51 |
+
| 9 | gpt2 - gpt2xl - gpt - gpt2tokenizer - gpt3 | 261 | 9_gpt2_gpt2xl_gpt_gpt2tokenizer |
|
| 52 |
+
| 10 | rag - ragtokenforgeneration - ragsequenceforgeneration - tokenizer - gluepy | 256 | 10_rag_ragtokenforgeneration_ragsequenceforgeneration_tokenizer |
|
| 53 |
+
| 11 | transformerscli - importerror - transformers - transformer - transformerxl | 232 | 11_transformerscli_importerror_transformers_transformer |
|
| 54 |
+
| 12 | ner - pipeline - pipelines - pipelinespy - nerpipeline | 196 | 12_ner_pipeline_pipelines_pipelinespy |
|
| 55 |
+
| 13 | testing - tests - test - installationtest - speedup | 189 | 13_testing_tests_test_installationtest |
|
| 56 |
+
| 14 | checkpoint - trainertrain - checkpoints - checkpointing - trainersavecheckpoint | 162 | 14_checkpoint_trainertrain_checkpoints_checkpointing |
|
| 57 |
+
| 15 | flax - flaxelectraformaskedlm - flaxelectraforpretraining - flaxjax - flaxelectramodel | 119 | 15_flax_flaxelectraformaskedlm_flaxelectraforpretraining_flaxjax |
|
| 58 |
+
| 16 | generationbeamsearchpy - generatebeamsearch - beamsearch - nonbeamsearch - beam | 109 | 16_generationbeamsearchpy_generatebeamsearch_beamsearch_nonbeamsearch |
|
| 59 |
+
| 17 | onnxonnxruntime - onnx - onnxexport - 04onnxexport - 04onnxexportipynb | 99 | 17_onnxonnxruntime_onnx_onnxexport_04onnxexport |
|
| 60 |
+
| 18 | labelsmoothednllloss - labelsmoothingfactor - label - labels - labelsmoothing | 86 | 18_labelsmoothednllloss_labelsmoothingfactor_label_labels |
|
| 61 |
+
| 19 | cachedir - cache - cachedpath - cached - caching | 77 | 19_cachedir_cache_cachedpath_cached |
|
| 62 |
+
| 20 | wav2vec2 - wav2vec - wav2vec20 - wav2vec2forctc - wav2vec2xlrswav2vec2 | 61 | 20_wav2vec2_wav2vec_wav2vec20_wav2vec2forctc |
|
| 63 |
+
| 21 | notebook - notebooks - community - colab - t5 | 55 | 21_notebook_notebooks_community_colab |
|
| 64 |
+
| 22 | wandbproject - wandb - wandbcallback - wandbdisabled - wandbdisabledtrue | 39 | 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 | isort - blackisortflake8 - dependencies - github - matplotlib | 18 | 25_isort_blackisortflake8_dependencies_github |
|
| 68 |
+
| 26 | pplm - pr - deprecated - variable - ppl | 16 | 26_pplm_pr_deprecated_variable |
|
| 69 |
+
| 27 | ga - fork - forks - forked - push | 14 | 27_ga_fork_forks_forked |
|
| 70 |
+
| 28 | indexerror - runtimeerror - index - indices - missingindex | 11 | 28_indexerror_runtimeerror_index_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 |
+
|
| 86 |
+
## Framework versions
|
| 87 |
+
|
| 88 |
+
* Numpy: 1.23.5
|
| 89 |
+
* HDBSCAN: 0.8.33
|
| 90 |
+
* UMAP: 0.5.4
|
| 91 |
+
* Pandas: 1.5.3
|
| 92 |
+
* Scikit-Learn: 1.2.2
|
| 93 |
+
* Sentence-transformers: 2.2.2
|
| 94 |
+
* Transformers: 4.34.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:23df0a00318978d47672bbdb8b6a196b4df9c8270505ecc0e04f13d48029c4c7
|
| 3 |
+
size 46168
|
topics.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|