thiagoquilice commited on
Commit
2bbf32f
1 Parent(s): 2e1ad8a

Add BERTopic model

Browse files
README.md ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ tags:
4
+ - bertopic
5
+ library_name: bertopic
6
+ pipeline_tag: text-classification
7
+ ---
8
+
9
+ # tweets_deforestation_withoutRT_pt
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_withoutRT_pt")
27
+
28
+ topic_model.get_topic_info()
29
+ ```
30
+
31
+ ## Topic overview
32
+
33
+ * Number of topics: 18
34
+ * Number of training documents: 21239
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 | brazil - the - amazon - soy - to | 152 | Deforestation in Brazil's Cerrado due to Soy Production |
42
+ | 0 | the - deforestation - to - in - amazon | 2949 | Deforestation in the Amazon |
43
+ | 1 | soy - the - to - cerrado - and | 5520 | Deforestation and Soy Imports |
44
+ | 2 | in - best - partners - hesitate - raze | 3354 | Deforestation of Indigenous Lands |
45
+ | 3 | destruction - billions - fires - funds - with | 2337 | Deforestation in Brazil |
46
+ | 4 | moratorium - soy - amazon - on - the | 1451 | Brazil's Soy Moratorium |
47
+ | 5 | scandal - bragging - disappearance - anti - while | 1443 | Environmental scandal: BNP and deforestation |
48
+ | 6 | hey - hypocrisy - talk - leader - you | 692 | Corporate hypocrisy in zero deforestation policies |
49
+ | 7 | disappearance - scandal - bragging - anti - while | 562 | Deforestation scandal involving BNP |
50
+ | 8 | fund - destruction - billions - fires - with | 512 | Deforestation in Brazil's Amazon and Cerrado regions |
51
+ | 9 | partner - bnpparibas - number - burning - world | 460 | Deforestation partnership with BNPP |
52
+ | 10 | palm - oil - sights - sets - danger | 380 | Threats to the Amazon rainforest: Palm oil expansion in Brazil |
53
+ | 11 | caso - yo - my - soy - me | 367 | Twitter memes using "yo soy" phrase |
54
+ | 12 | peasant - economy - amazonian - of - deforestation | 341 | Amazonian Peasant Economy and Deforestation |
55
+ | 13 | dramatically - reduced - moratorium - brazil - soy | 201 | Brazil's Soy Moratorium and Deforestation Reduction |
56
+ | 14 | faster - burns - destroyed - another - part | 179 | Deforestation in Brazil |
57
+ | 15 | partner - bofa - bankofamerica - number - burning | 172 | Deforestation partnerships with Bank of America |
58
+ | 16 | indigenouslivesmatter - indigenouspeoplematter - humanrights - amazoniasinextraccion - stopamazonextraction | 167 | Indigenous rights and environmental protection in the Amazon |
59
+
60
+ </details>
61
+
62
+ ## Training hyperparameters
63
+
64
+ * calculate_probabilities: False
65
+ * language: None
66
+ * low_memory: False
67
+ * min_topic_size: 10
68
+ * n_gram_range: (1, 1)
69
+ * nr_topics: None
70
+ * seed_topic_list: None
71
+ * top_n_words: 10
72
+ * verbose: True
73
+ * zeroshot_min_similarity: 0.7
74
+ * zeroshot_topic_list: None
75
+
76
+ ## Framework versions
77
+
78
+ * Numpy: 1.25.2
79
+ * HDBSCAN: 0.8.33
80
+ * UMAP: 0.5.6
81
+ * Pandas: 2.0.3
82
+ * Scikit-Learn: 1.2.2
83
+ * Sentence-transformers: 2.7.0
84
+ * Transformers: 4.40.2
85
+ * Numba: 0.58.1
86
+ * Plotly: 5.15.0
87
+ * 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:4e1e2b6d0e94992b63e0b0cda9c0d26c24e622b6dc612230bd8398e99d9cfb45
3
+ size 403376
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:344c5e5093d863e9e4b9ef251e6b30769b8284570e97b7e6299b5bb98ab1d960
3
+ size 55384
topics.json ADDED
The diff for this file is too large to render. See raw diff