Add BERTopic model
Browse files- README.md +73 -0
- config.json +16 -0
- ctfidf.safetensors +3 -0
- ctfidf_config.json +0 -0
- topic_embeddings.safetensors +3 -0
- topics.json +0 -0
README.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
---
|
| 3 |
+
tags:
|
| 4 |
+
- bertopic
|
| 5 |
+
library_name: bertopic
|
| 6 |
+
pipeline_tag: text-classification
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
# BERTopic_BrainlessChanel
|
| 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("sdantonio/BERTopic_BrainlessChanel")
|
| 27 |
+
|
| 28 |
+
topic_model.get_topic_info()
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
+
## Topic overview
|
| 32 |
+
|
| 33 |
+
* Number of topics: 4
|
| 34 |
+
* Number of training documents: 68013
|
| 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 |
+
| 0 | missiles - ukrainiennes - israe - militaires - armes | 55292 | 0_missiles_ukrainiennes_israe_militaires |
|
| 42 |
+
| 1 | ukrainiennes - israe - ukraine - militaires - armes | 12667 | 1_ukrainiennes_israe_ukraine_militaires |
|
| 43 |
+
| 2 | brainlesschanel - journe - douce - rockn - belle | 31 | 2_brainlesschanel_journe_douce_rockn |
|
| 44 |
+
| 3 | brainlesschanel - cible - afrique - douce - norve | 23 | 3_brainlesschanel_cible_afrique_douce |
|
| 45 |
+
|
| 46 |
+
</details>
|
| 47 |
+
|
| 48 |
+
## Training hyperparameters
|
| 49 |
+
|
| 50 |
+
* calculate_probabilities: False
|
| 51 |
+
* language: None
|
| 52 |
+
* low_memory: False
|
| 53 |
+
* min_topic_size: 10
|
| 54 |
+
* n_gram_range: (1, 1)
|
| 55 |
+
* nr_topics: None
|
| 56 |
+
* seed_topic_list: None
|
| 57 |
+
* top_n_words: 10
|
| 58 |
+
* verbose: False
|
| 59 |
+
* zeroshot_min_similarity: 0.7
|
| 60 |
+
* zeroshot_topic_list: None
|
| 61 |
+
|
| 62 |
+
## Framework versions
|
| 63 |
+
|
| 64 |
+
* Numpy: 1.23.5
|
| 65 |
+
* HDBSCAN: 0.8.38.post1
|
| 66 |
+
* UMAP: 0.5.6
|
| 67 |
+
* Pandas: 2.2.2
|
| 68 |
+
* Scikit-Learn: 1.5.1
|
| 69 |
+
* Sentence-transformers: 3.0.1
|
| 70 |
+
* Transformers: 4.44.2
|
| 71 |
+
* Numba: 0.60.0
|
| 72 |
+
* Plotly: 5.24.0
|
| 73 |
+
* Python: 3.10.12
|
config.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"calculate_probabilities": false,
|
| 3 |
+
"language": null,
|
| 4 |
+
"low_memory": false,
|
| 5 |
+
"min_topic_size": 10,
|
| 6 |
+
"n_gram_range": [
|
| 7 |
+
1,
|
| 8 |
+
1
|
| 9 |
+
],
|
| 10 |
+
"nr_topics": null,
|
| 11 |
+
"seed_topic_list": null,
|
| 12 |
+
"top_n_words": 10,
|
| 13 |
+
"verbose": false,
|
| 14 |
+
"zeroshot_min_similarity": 0.7,
|
| 15 |
+
"zeroshot_topic_list": null
|
| 16 |
+
}
|
ctfidf.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:abe2fa201560cef0cdefcba8a2ddc4ee7bb603f5619f23988be1520841221836
|
| 3 |
+
size 1733300
|
ctfidf_config.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
topic_embeddings.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:46637da9c76a9f4e625020e7d26961acdf34d9bff14e1f34de45877593ac3625
|
| 3 |
+
size 16472
|
topics.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|