Add BERTopic model
Browse files- README.md +75 -0
- config.json +15 -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,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
---
|
3 |
+
tags:
|
4 |
+
- bertopic
|
5 |
+
library_name: bertopic
|
6 |
+
pipeline_tag: text-classification
|
7 |
+
---
|
8 |
+
|
9 |
+
# BERTopic-Indonesia-Finance-News
|
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("ZhafranR/BERTopic-Indonesia-Finance-News")
|
27 |
+
|
28 |
+
topic_model.get_topic_info()
|
29 |
+
```
|
30 |
+
|
31 |
+
## Topic overview
|
32 |
+
|
33 |
+
* Number of topics: 8
|
34 |
+
* Number of training documents: 74933
|
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 | penguatan - menguat - ihsg - acuan - kamis | 28336 | 0_penguatan_menguat_ihsg_acuan |
|
42 |
+
| 1 | perseroan - keterbukaan - sepekan - kepemilikan - hmetd | 12504 | 1_perseroan_keterbukaan_sepekan_kepemilikan |
|
43 |
+
| 2 | perseroan - penyaluran - restrukturisasi - otoritas - transformasi | 11737 | 2_perseroan_penyaluran_restrukturisasi_otoritas |
|
44 |
+
| 3 | sekuritas - ihsg - squawk - saksikan - cnbcindonesia | 9410 | 3_sekuritas_ihsg_squawk_saksikan |
|
45 |
+
| 4 | menguat - penguatan - sekuritas - terpantau - jakarta | 8680 | 4_menguat_penguatan_sekuritas_terpantau |
|
46 |
+
| 5 | penyidikan - diperiksa - kejagung - penyidik - persidangan | 2616 | 5_penyidikan_diperiksa_kejagung_penyidik |
|
47 |
+
| 6 | iurannya - ketenagakerjaan - kepesertaan - pemberi - dibayarkan | 1317 | 6_iurannya_ketenagakerjaan_kepesertaan_pemberi |
|
48 |
+
| 7 | likuiditas - pencatatan - berkelanjutan - sukuk - cyclicals | 333 | 7_likuiditas_pencatatan_berkelanjutan_sukuk |
|
49 |
+
|
50 |
+
</details>
|
51 |
+
|
52 |
+
## Training hyperparameters
|
53 |
+
|
54 |
+
* calculate_probabilities: False
|
55 |
+
* language: None
|
56 |
+
* low_memory: False
|
57 |
+
* min_topic_size: 100
|
58 |
+
* n_gram_range: (1, 2)
|
59 |
+
* nr_topics: None
|
60 |
+
* seed_topic_list: None
|
61 |
+
* top_n_words: 20
|
62 |
+
* verbose: True
|
63 |
+
|
64 |
+
## Framework versions
|
65 |
+
|
66 |
+
* Numpy: 1.24.1
|
67 |
+
* HDBSCAN: 0.8.33
|
68 |
+
* UMAP: 0.5.4
|
69 |
+
* Pandas: 1.5.3
|
70 |
+
* Scikit-Learn: 1.3.2
|
71 |
+
* Sentence-transformers: 2.2.2
|
72 |
+
* Transformers: 4.35.0
|
73 |
+
* Numba: 0.57.1
|
74 |
+
* Plotly: 5.18.0
|
75 |
+
* Python: 3.10.6
|
config.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"calculate_probabilities": false,
|
3 |
+
"language": null,
|
4 |
+
"low_memory": false,
|
5 |
+
"min_topic_size": 100,
|
6 |
+
"n_gram_range": [
|
7 |
+
1,
|
8 |
+
2
|
9 |
+
],
|
10 |
+
"nr_topics": null,
|
11 |
+
"seed_topic_list": null,
|
12 |
+
"top_n_words": 20,
|
13 |
+
"verbose": true,
|
14 |
+
"embedding_model": "ZhafranR/XLM-RoBERTa-Large-FineTuned-CCIDNews"
|
15 |
+
}
|
ctfidf.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d4e1359fc7c583b419299a9a69be4bd108c3a03cec36d3e9eed69067b965d9d4
|
3 |
+
size 3660004
|
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:07e953fda427e63231596f37535a6cc1a507e3e159273e66ae2d30cfd866c898
|
3 |
+
size 32856
|
topics.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|