thiagoquilice commited on
Commit
b4ee211
1 Parent(s): 7bf3d0e

Add BERTopic model

Browse files
README.md ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ tags:
4
+ - bertopic
5
+ library_name: bertopic
6
+ pipeline_tag: text-classification
7
+ ---
8
+
9
+ # tweets_deforestation_all__RT_exclude_biggerclusters
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("thiagoquilice/tweets_deforestation_all__RT_exclude_biggerclusters")
27
+
28
+ topic_model.get_topic_info()
29
+ ```
30
+
31
+ ## Topic overview
32
+
33
+ * Number of topics: 13
34
+ * Number of training documents: 389209
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 | desmatamento - amazônia - na - de - em | 2371 | Deforestation in the Amazon |
42
+ | 0 | que - de - do - desmatamento - amazônia | 127251 | Deforestation in the Amazon |
43
+ | 1 | petição - assine - impedir - exploração - via | 114185 | Protect the Amazon Rainforest |
44
+ | 2 | soja - de - cerrado - que - da | 46552 | Soya in the Cerrado region |
45
+ | 3 | em - de - na - km - desmatamento | 33829 | Deforestation in the Amazon |
46
+ | 4 | que - de - não - do - com | 17702 | Political and environmental issues in Brazil |
47
+ | 5 | menor - cai - na - desmatamento - amazônia | 8855 | Deforestation in the Amazon decreases and reaches lower rates in recent years |
48
+ | 6 | impedir - exploração - petição - via - assine | 8611 | Protect the Amazon: Sign the Petition |
49
+ | 7 | cerrado - do - de - desmatamento - no | 7695 | Deforestation in the Cerrado region |
50
+ | 8 | - - - - | 7163 | "Technology trends and their impact on society" |
51
+ | 9 | petition - sign - the - impedir - exploração | 6901 | Protect the Amazon Rainforest |
52
+ | 10 | tamanho - sp - leia - quase - legal | 5157 | Deforestation in the Amazon |
53
+ | 11 | in - partners - best - raze - loot | 2937 | Deforestation and exploitation of indigenous lands |
54
+
55
+ </details>
56
+
57
+ ## Training hyperparameters
58
+
59
+ * calculate_probabilities: False
60
+ * language: None
61
+ * low_memory: False
62
+ * min_topic_size: 10
63
+ * n_gram_range: (1, 1)
64
+ * nr_topics: None
65
+ * seed_topic_list: None
66
+ * top_n_words: 10
67
+ * verbose: True
68
+ * zeroshot_min_similarity: 0.7
69
+ * zeroshot_topic_list: None
70
+
71
+ ## Framework versions
72
+
73
+ * Numpy: 1.25.2
74
+ * HDBSCAN: 0.8.33
75
+ * UMAP: 0.5.6
76
+ * Pandas: 2.0.3
77
+ * Scikit-Learn: 1.2.2
78
+ * Sentence-transformers: 2.7.0
79
+ * Transformers: 4.41.0
80
+ * Numba: 0.58.1
81
+ * Plotly: 5.15.0
82
+ * 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": true,
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:c72955348457816172f482ab04c81a001d9d1142e6ae110db5fe77841507d21d
3
+ size 3418784
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:297db9625e7d2af69792a4332afc8664fe80f241db3b0657d92e1f36a1adb8b7
3
+ size 40024
topics.json ADDED
The diff for this file is too large to render. See raw diff