This means economic events are labeled based on how they impact the Indian economy:
1from transformers import pipeline
2
3classifier = pipeline("text-classification", model="Kenpache/flame2-hindi")
4
5# Oil prices fall — positive for India (importer)
6classifier("तेल की कीमतें गिरकर 65 डॉलर प्रति बैरल हुईं")
7# [{'label': 'positive', 'score': 0.94}]
8
9# RBI cuts rate — positive
10classifier("भारतीय रिजर्व बैंक ने रेपो रेट में 25 बीपीएस की कटौती की")
11# [{'label': 'positive', 'score': 0.95}]
12
13# Sensex drops — negative
14classifier("सेंसेक्स 500 अंक गिरा, निवेशकों में बेचैनी")
15# [{'label': 'negative', 'score': 0.93}]
16
17# Company reports results — neutral
18classifier("टाटा स्टील ने तिमाही नतीजे घोषित किए")
19# [{'label': 'neutral', 'score': 0.88}]
Data sources include Indian financial news sites and economic news agencies. All headlines labeled from the Indian investor perspective — oil price drops are positive (India imports oil), rupee strengthening is positive, RBI rate cuts are positive.
1from transformers import pipeline
2
3classifier = pipeline("text-classification", model="Kenpache/flame2-hindi", device=0)
4
5texts = [
6 "सेंसेक्स ने 75000 का नया रिकॉर्ड बनाया",
7 "महंगाई दर बढ़कर 6.5% पर पहुंची",
8 "आरबीआई ने रेपो रेट में 25 बीपीएस की कटौती की",
9 "रुपया डॉलर के मुकाबले 83.50 पर स्थिर",
10 "रिलायंस का मुनाफा 15% बढ़ा",
11]
12
13results = classifier(texts, batch_size=32)
14for text, result in zip(texts, results):
15 print(f"{result['label']:>8} ({result['score']:.2f}) {text[:60]}")
1@misc{flame2_hindi_2026,
2 title={FLAME2-Hindi: Financial Sentiment Analysis for Indian Markets},
3 author={Kenpache},
4 year={2026},
5 url={https://huggingface.co/Kenpache/flame2-hindi}
6}