mljn commited on
Commit
8ceb87c
·
verified ·
1 Parent(s): 4a56400

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +6 -0
README.md CHANGED
@@ -24,6 +24,12 @@ should probably proofread and complete it, then remove this comment. -->
24
 
25
  This model is a fine-tuned version of [microsoft/deberta-v3-base](https://huggingface.co/microsoft/deberta-v3-base) trained to classify climate-related sentences in English using a dataset of 5,600 annotated sentences from the United Nations General Assembly Corpus. It was developed to build the Executive Comparative Climate Attention (ECCA) indicator, introduced in a [paper](https://direct.mit.edu/glep/article/doi/10.1162/glep.a.1/131712/Executive-Climate-Change-Attention-Toward-an) published in Global Environmental Politics.
26
 
 
 
 
 
 
 
27
  It achieves the following results on the evaluation set:
28
  - Loss: 0.0807
29
  - Accuracy: 0.975
 
24
 
25
  This model is a fine-tuned version of [microsoft/deberta-v3-base](https://huggingface.co/microsoft/deberta-v3-base) trained to classify climate-related sentences in English using a dataset of 5,600 annotated sentences from the United Nations General Assembly Corpus. It was developed to build the Executive Comparative Climate Attention (ECCA) indicator, introduced in a [paper](https://direct.mit.edu/glep/article/doi/10.1162/glep.a.1/131712/Executive-Climate-Change-Attention-Toward-an) published in Global Environmental Politics.
26
 
27
+
28
+ # How to use
29
+
30
+ <pre><code>```python from transformers import pipeline classifier = pipeline("text-classification", model="your-username/unga-climate-classifier") text = "Climate change poses a fundamental threat to our future." result = classifier(text) print(result) ```</code></pre>
31
+
32
+
33
  It achieves the following results on the evaluation set:
34
  - Loss: 0.0807
35
  - Accuracy: 0.975