Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,75 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
pipeline_tag: text-classification
|
| 4 |
+
tags:
|
| 5 |
+
- transformers
|
| 6 |
+
- text-classification
|
| 7 |
+
- multi-label
|
| 8 |
+
- energy
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# Energy News Classifier
|
| 12 |
+
|
| 13 |
+
## Overview
|
| 14 |
+
|
| 15 |
+
This model is a multi-label text classification system designed to extract structured signals from unstructured news data.
|
| 16 |
+
|
| 17 |
+
It focuses on identifying themes related to global energy systems, macroeconomic shifts, and geopolitical dynamics.
|
| 18 |
+
|
| 19 |
+
The model is built on top of DistilBERT and fine-tuned for domain-aware classification of news headlines and articles.
|
| 20 |
+
|
| 21 |
+
---
|
| 22 |
+
|
| 23 |
+
## Motivation
|
| 24 |
+
|
| 25 |
+
Energy is one of the most critical drivers of global systems.
|
| 26 |
+
|
| 27 |
+
Changes in supply chains, geopolitical tensions, regulation, and trade flows directly impact:
|
| 28 |
+
|
| 29 |
+
- Commodity markets
|
| 30 |
+
- Inflation cycles
|
| 31 |
+
- Global logistics
|
| 32 |
+
- Financial systems
|
| 33 |
+
|
| 34 |
+
Most traditional NLP models treat news as generic categories. This model instead focuses on extracting **signal-level intelligence** from news streams.
|
| 35 |
+
|
| 36 |
+
---
|
| 37 |
+
|
| 38 |
+
## Labels
|
| 39 |
+
|
| 40 |
+
The model supports multi-label classification across:
|
| 41 |
+
|
| 42 |
+
- energy
|
| 43 |
+
- politics
|
| 44 |
+
- trade
|
| 45 |
+
- stocks
|
| 46 |
+
- regulation
|
| 47 |
+
- shipping
|
| 48 |
+
- macro
|
| 49 |
+
- business
|
| 50 |
+
- technology
|
| 51 |
+
- risk
|
| 52 |
+
|
| 53 |
+
---
|
| 54 |
+
|
| 55 |
+
## Model Details
|
| 56 |
+
|
| 57 |
+
- Base Model: `distilbert-base-uncased`
|
| 58 |
+
- Task: Multi-label classification
|
| 59 |
+
- Framework: Hugging Face Transformers
|
| 60 |
+
- Output: Sigmoid probabilities
|
| 61 |
+
|
| 62 |
+
---
|
| 63 |
+
|
| 64 |
+
## Usage — Transformers (Recommended)
|
| 65 |
+
|
| 66 |
+
```python
|
| 67 |
+
from transformers import pipeline
|
| 68 |
+
|
| 69 |
+
classifier = pipeline(
|
| 70 |
+
"text-classification",
|
| 71 |
+
model="QuantBridge/energy-news-classifier",
|
| 72 |
+
top_k=None
|
| 73 |
+
)
|
| 74 |
+
|
| 75 |
+
classifier("Oil supply disrupted due to geopolitical tensions")
|