Add BERTopic model
Browse files- README.md +89 -0
- config.json +17 -0
- ctfidf.bin +3 -0
- ctfidf_config.json +0 -0
- topic_embeddings.bin +3 -0
- topics.json +0 -0
README.md
ADDED
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
---
|
3 |
+
tags:
|
4 |
+
- bertopic
|
5 |
+
library_name: bertopic
|
6 |
+
pipeline_tag: text-classification
|
7 |
+
---
|
8 |
+
|
9 |
+
# general-mar11
|
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("Thang203/general-mar11")
|
27 |
+
|
28 |
+
topic_model.get_topic_info()
|
29 |
+
```
|
30 |
+
|
31 |
+
## Topic overview
|
32 |
+
|
33 |
+
* Number of topics: 20
|
34 |
+
* Number of training documents: 12146
|
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 | models - language - llms - language models - large | 11 | -1_models_language_llms_language models |
|
42 |
+
| 0 | models - language - language models - model - llms | 3795 | 0_models_language_language models_model |
|
43 |
+
| 1 | code - language - llms - models - large | 3252 | 1_code_language_llms_models |
|
44 |
+
| 2 | visual - image - models - multimodal - video | 1236 | 2_visual_image_models_multimodal |
|
45 |
+
| 3 | detection - text - models - attacks - adversarial | 724 | 3_detection_text_models_attacks |
|
46 |
+
| 4 | bias - models - biases - llms - gender | 610 | 4_bias_models_biases_llms |
|
47 |
+
| 5 | medical - clinical - models - language - llms | 451 | 5_medical_clinical_models_language |
|
48 |
+
| 6 | legal - financial - sentiment - models - language | 437 | 6_legal_financial_sentiment_models |
|
49 |
+
| 7 | ai - chatgpt - generative - design - generative ai | 377 | 7_ai_chatgpt_generative_design |
|
50 |
+
| 8 | privacy - data - private - models - federated | 274 | 8_privacy_data_private_models |
|
51 |
+
| 9 | students - education - chatgpt - ai - student | 201 | 9_students_education_chatgpt_ai |
|
52 |
+
| 10 | driving - autonomous - autonomous driving - traffic - spatial | 164 | 10_driving_autonomous_autonomous driving_traffic |
|
53 |
+
| 11 | protein - molecular - materials - chemical - drug | 113 | 11_protein_molecular_materials_chemical |
|
54 |
+
| 12 | reinforcement learning - reinforcement - learning - rl - policy | 103 | 12_reinforcement learning_reinforcement_learning_rl |
|
55 |
+
| 13 | math - mathematical - problems - reasoning - theorem | 100 | 13_math_mathematical_problems_reasoning |
|
56 |
+
| 14 | vulnerability - code - vulnerabilities - security - log | 91 | 14_vulnerability_code_vulnerabilities_security |
|
57 |
+
| 15 | forecasting - climate - time series - data - carbon | 78 | 15_forecasting_climate_time series_data |
|
58 |
+
| 16 | style - poetry - style transfer - transfer - poems | 78 | 16_style_poetry_style transfer_transfer |
|
59 |
+
| 17 | regression - matrix - softmax - mathbbrn - bf | 37 | 17_regression_matrix_softmax_mathbbrn |
|
60 |
+
| 18 | recipes - recipe - food - cooking - dietary | 14 | 18_recipes_recipe_food_cooking |
|
61 |
+
|
62 |
+
</details>
|
63 |
+
|
64 |
+
## Training hyperparameters
|
65 |
+
|
66 |
+
* calculate_probabilities: False
|
67 |
+
* language: None
|
68 |
+
* low_memory: False
|
69 |
+
* min_topic_size: 10
|
70 |
+
* n_gram_range: (1, 1)
|
71 |
+
* nr_topics: 20
|
72 |
+
* seed_topic_list: None
|
73 |
+
* top_n_words: 10
|
74 |
+
* verbose: True
|
75 |
+
* zeroshot_min_similarity: 0.7
|
76 |
+
* zeroshot_topic_list: None
|
77 |
+
|
78 |
+
## Framework versions
|
79 |
+
|
80 |
+
* Numpy: 1.25.2
|
81 |
+
* HDBSCAN: 0.8.33
|
82 |
+
* UMAP: 0.5.5
|
83 |
+
* Pandas: 1.5.3
|
84 |
+
* Scikit-Learn: 1.2.2
|
85 |
+
* Sentence-transformers: 2.5.1
|
86 |
+
* Transformers: 4.38.2
|
87 |
+
* Numba: 0.58.1
|
88 |
+
* Plotly: 5.15.0
|
89 |
+
* Python: 3.10.12
|
config.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": 20,
|
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 |
+
}
|
ctfidf.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6426ca71883ee5556d89d1009e45868e07d0577f669bf7ff13b33aaa311b914a
|
3 |
+
size 8043139
|
ctfidf_config.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
topic_embeddings.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1662f57c2b47d7662c38628119b2653860c8a82b556af936eaf9afa2ed217dbf
|
3 |
+
size 32009
|
topics.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|