brjoey commited on
Commit
e94da57
·
verified ·
1 Parent(s): cf81689

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +19 -0
README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Please refer to [climatebert/econbert](https://huggingface.co/climatebert/econbert) for more information about the model and cite the corresponding paper if you use this model.
2
+
3
+ This repo contains all the necessary tokenizer/model files with a corrected folder structure that enables easier downstream usage such as fine-tuning for sentiment classification.
4
+
5
+ ## Usage
6
+
7
+ ```python
8
+ from transformers import AutoTokenizer, AutoModel
9
+
10
+ model_name = "brjoey/climatebert_econbert"
11
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
12
+ model = AutoModel.from_pretrained(model_name)
13
+
14
+ # For sequence classification tasks:
15
+ from transformers import AutoModelForSequenceClassification
16
+ model = AutoModelForSequenceClassification.from_pretrained(model_name, num_labels=3)
17
+ ```
18
+
19
+ Note that the standard transformers library loading methods (AutoTokenizer, AutoModel) seem to fail with the original repository due to non-standard file organization.