Update README.md
Browse files
README.md
CHANGED
|
@@ -29,6 +29,7 @@ It classifies English-language text into **Positive**, **Negative** or **Neutral
|
|
| 29 |
- **License:** MIT
|
| 30 |
- **Finetuned from:** [ProsusAI/finbert](https://huggingface.co/ProsusAI/finbert)
|
| 31 |
|
|
|
|
| 32 |
### Model Sources [optional] TO DO
|
| 33 |
|
| 34 |
<!-- Provide the basic links for the model. -->
|
|
@@ -48,9 +49,7 @@ It classifies English-language text into **Positive**, **Negative** or **Neutral
|
|
| 48 |
- Sentiment classification of news articles and headlines, regulatory filings, or analyst notes discussing **tariffs, trade wars, or import/export policy**.
|
| 49 |
- Can be used as-is via the Hugging Face `pipeline("text-classification")`.
|
| 50 |
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
### Downstream Use [optional]
|
| 54 |
|
| 55 |
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 56 |
|
|
@@ -82,11 +81,22 @@ Users (both direct and downstream) should be made aware of the risks, biases and
|
|
| 82 |
|
| 83 |
**Use confidence thresholds and human review in production.**
|
| 84 |
|
| 85 |
-
## How to Get Started with the Model
|
| 86 |
|
| 87 |
Use the code below to get started with the model.
|
|
|
|
|
|
|
| 88 |
|
| 89 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
|
| 91 |
## Training Details TO DO
|
| 92 |
|
|
@@ -94,12 +104,14 @@ Use the code below to get started with the model.
|
|
| 94 |
|
| 95 |
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
| 96 |
|
|
|
|
| 97 |
[More Information Needed]
|
| 98 |
|
| 99 |
### Training Procedure
|
| 100 |
|
| 101 |
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 102 |
|
|
|
|
| 103 |
#### Preprocessing [optional]
|
| 104 |
|
| 105 |
[More Information Needed]
|
|
@@ -108,50 +120,36 @@ Use the code below to get started with the model.
|
|
| 108 |
#### Training Hyperparameters
|
| 109 |
|
| 110 |
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 111 |
-
|
| 112 |
#### Speeds, Sizes, Times [optional]
|
| 113 |
|
| 114 |
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 115 |
|
|
|
|
| 116 |
[More Information Needed]
|
| 117 |
|
|
|
|
|
|
|
|
|
|
| 118 |
## Evaluation
|
| 119 |
|
| 120 |
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 121 |
|
|
|
|
| 122 |
### Testing Data, Factors & Metrics
|
| 123 |
|
| 124 |
#### Testing Data
|
| 125 |
|
| 126 |
<!-- This should link to a Dataset Card if possible. -->
|
| 127 |
|
| 128 |
-
[More Information Needed]
|
| 129 |
-
|
| 130 |
-
#### Factors
|
| 131 |
-
|
| 132 |
-
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 133 |
-
|
| 134 |
-
[More Information Needed]
|
| 135 |
-
|
| 136 |
#### Metrics
|
| 137 |
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
[More Information Needed]
|
| 141 |
|
| 142 |
### Results
|
| 143 |
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
#### Summary
|
| 147 |
-
|
| 148 |
-
|
| 149 |
|
| 150 |
-
## Model Examination [optional]
|
| 151 |
-
|
| 152 |
-
<!-- Relevant interpretability work for the model goes here -->
|
| 153 |
-
|
| 154 |
-
[More Information Needed]
|
| 155 |
|
| 156 |
## Environmental Impact
|
| 157 |
|
|
@@ -162,28 +160,13 @@ Use the code below to get started with the model.
|
|
| 162 |
- **Energy Use Estimate:** ≈0.02 kWh
|
| 163 |
- **Estimated Carbon Emissions:** ≈0.01 kg CO2eq
|
| 164 |
|
| 165 |
-
## Technical Specifications [optional]
|
| 166 |
-
|
| 167 |
-
### Model Architecture and Objective
|
| 168 |
-
|
| 169 |
-
[More Information Needed]
|
| 170 |
-
|
| 171 |
-
### Compute Infrastructure
|
| 172 |
-
|
| 173 |
-
[More Information Needed]
|
| 174 |
-
|
| 175 |
-
#### Hardware
|
| 176 |
-
|
| 177 |
-
[More Information Needed]
|
| 178 |
-
|
| 179 |
-
#### Software
|
| 180 |
-
|
| 181 |
-
[More Information Needed]
|
| 182 |
|
|
|
|
| 183 |
## Citation [optional]
|
| 184 |
|
| 185 |
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 186 |
|
|
|
|
| 187 |
**BibTeX:**
|
| 188 |
|
| 189 |
[More Information Needed]
|
|
@@ -191,22 +174,10 @@ Use the code below to get started with the model.
|
|
| 191 |
**APA:**
|
| 192 |
|
| 193 |
[More Information Needed]
|
| 194 |
-
|
| 195 |
-
## Glossary [optional]
|
| 196 |
-
|
| 197 |
-
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 198 |
-
|
| 199 |
-
[More Information Needed]
|
| 200 |
-
|
| 201 |
-
## More Information [optional]
|
| 202 |
-
|
| 203 |
-
[More Information Needed]
|
| 204 |
-
|
| 205 |
-
## Model Card Authors [optional]
|
| 206 |
-
|
| 207 |
-
[More Information Needed]
|
| 208 |
|
| 209 |
## Model Card Contact
|
| 210 |
|
| 211 |
For questions or collaboration, email [hello@cmm.fyi](hello@cmm.fyi)
|
|
|
|
| 212 |
Or contact [@CristobalMe](https://github.com/CristobalMe)
|
|
|
|
| 29 |
- **License:** MIT
|
| 30 |
- **Finetuned from:** [ProsusAI/finbert](https://huggingface.co/ProsusAI/finbert)
|
| 31 |
|
| 32 |
+
<!--
|
| 33 |
### Model Sources [optional] TO DO
|
| 34 |
|
| 35 |
<!-- Provide the basic links for the model. -->
|
|
|
|
| 49 |
- Sentiment classification of news articles and headlines, regulatory filings, or analyst notes discussing **tariffs, trade wars, or import/export policy**.
|
| 50 |
- Can be used as-is via the Hugging Face `pipeline("text-classification")`.
|
| 51 |
|
| 52 |
+
### Downstream Use
|
|
|
|
|
|
|
| 53 |
|
| 54 |
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 55 |
|
|
|
|
| 81 |
|
| 82 |
**Use confidence thresholds and human review in production.**
|
| 83 |
|
| 84 |
+
## How to Get Started with the Model
|
| 85 |
|
| 86 |
Use the code below to get started with the model.
|
| 87 |
+
```{python}
|
| 88 |
+
from transformers import pipeline
|
| 89 |
|
| 90 |
+
pipe = pipeline("text-classification", model="CristobalMe/TariffBERT")
|
| 91 |
+
|
| 92 |
+
text = "This is an example text for classification."
|
| 93 |
+
|
| 94 |
+
result = pipe(text)
|
| 95 |
+
|
| 96 |
+
print(result)
|
| 97 |
+
```
|
| 98 |
+
|
| 99 |
+
<!-- TO DO
|
| 100 |
|
| 101 |
## Training Details TO DO
|
| 102 |
|
|
|
|
| 104 |
|
| 105 |
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
| 106 |
|
| 107 |
+
<!--
|
| 108 |
[More Information Needed]
|
| 109 |
|
| 110 |
### Training Procedure
|
| 111 |
|
| 112 |
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 113 |
|
| 114 |
+
<!--
|
| 115 |
#### Preprocessing [optional]
|
| 116 |
|
| 117 |
[More Information Needed]
|
|
|
|
| 120 |
#### Training Hyperparameters
|
| 121 |
|
| 122 |
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 123 |
+
<!--
|
| 124 |
#### Speeds, Sizes, Times [optional]
|
| 125 |
|
| 126 |
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 127 |
|
| 128 |
+
<!--
|
| 129 |
[More Information Needed]
|
| 130 |
|
| 131 |
+
-->
|
| 132 |
+
|
| 133 |
+
<!--
|
| 134 |
## Evaluation
|
| 135 |
|
| 136 |
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 137 |
|
| 138 |
+
<!--
|
| 139 |
### Testing Data, Factors & Metrics
|
| 140 |
|
| 141 |
#### Testing Data
|
| 142 |
|
| 143 |
<!-- This should link to a Dataset Card if possible. -->
|
| 144 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 145 |
#### Metrics
|
| 146 |
|
| 147 |
+
Accuracy
|
|
|
|
|
|
|
| 148 |
|
| 149 |
### Results
|
| 150 |
|
| 151 |
+
Accuracy: 0.9
|
|
|
|
|
|
|
|
|
|
|
|
|
| 152 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 153 |
|
| 154 |
## Environmental Impact
|
| 155 |
|
|
|
|
| 160 |
- **Energy Use Estimate:** ≈0.02 kWh
|
| 161 |
- **Estimated Carbon Emissions:** ≈0.01 kg CO2eq
|
| 162 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 163 |
|
| 164 |
+
<!--
|
| 165 |
## Citation [optional]
|
| 166 |
|
| 167 |
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 168 |
|
| 169 |
+
<!--
|
| 170 |
**BibTeX:**
|
| 171 |
|
| 172 |
[More Information Needed]
|
|
|
|
| 174 |
**APA:**
|
| 175 |
|
| 176 |
[More Information Needed]
|
| 177 |
+
-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 178 |
|
| 179 |
## Model Card Contact
|
| 180 |
|
| 181 |
For questions or collaboration, email [hello@cmm.fyi](hello@cmm.fyi)
|
| 182 |
+
|
| 183 |
Or contact [@CristobalMe](https://github.com/CristobalMe)
|