Indic Climate Stance (Hindi / Bengali)
Stance of a Hindi or Bengali social-media comment (native script, Romanized or code-mixed) toward the claim
"Climate change and global warming is a serious concern." -> Favour / Against / None.
Current version: v2: an equal-weight average of 11 models: 8 fine-tuned transformers (MuRIL x6, XLM-R x2,
two training rounds) and 3 classical models (TF-IDF + Complement NB, TF-IDF + LR, BGE-M3 embeddings + LR).
The previous 4-model version (v1) is kept under the git tag v1 of this repository.
Intended use
Research and educational analysis of public climate discourse in Hindi and Bengali (comment sections, surveys). Not intended for moderation decisions about individuals, for inferring personal attributes, or for languages other than Hindi/Bengali/English mixes.
Training data
No official data existed; the training set was built from public English stance datasets (SemEval-2016 Task 6 climate target,
GWSD, ClimateStance) translated to Hindi and Bengali with NLLB-200 (back-translation filtered by LaBSE cosine >= 0.75),
Bengali headlines from Dhoroni, Romanized and code-mixed copies, and template-synthetic comments (19,278 rows).
v2 adds 3,994 targeted contrast examples (quoted denial, negation, implicit concern, sarcasm, different target; with
Romanized and code-mixed copies), filtered to remove anything similar (character 4-gram Jaccard >= 0.45) to any test or
validation text: 23,272 training rows in total. See docs/datasheet.md in the repository.
Model selection used a separate hand-written validation set (108 comments), never the test sets below.
Evaluation (hand-written gold set, test-only, 306 comments, 14 categories)
| metric | v1 (4 models) | v2 (11 models) |
|---|---|---|
| Macro F1 | 0.766 | 0.881 |
| Accuracy | 0.771 | 0.882 |
| Macro F1 (hi / bn) | 0.800 / 0.732 | 0.894 / 0.867 |
| Favour P / R / F1 | 0.840 / 0.573 / 0.681 | 0.957 / 0.809 / 0.877 |
| Against P / R / F1 | 0.797 / 0.904 / 0.847 | 0.885 / 0.962 / 0.922 |
| None P / R / F1 | 0.699 / 0.859 / 0.771 | 0.810 / 0.880 / 0.844 |
| Challenge-suite failure rate (1,084 tests) | 0.209 | 0.171 |
v2 - v1 gold macro F1: +0.115, paired bootstrap 95 % CI [+0.069, +0.161]. On 95 real comments by other authors (not used for training or selection) macro F1 went from 0.789 to 0.840.
Challenge-suite failure rate by category (lower is better):
| category | v2 | v1 |
|---|---|---|
| dir_negation | 0.53 | 0.31 |
| sarcasm | 0.50 | 0.40 |
| conspiracy | 0.37 | 0.33 |
| implicit | 0.30 | 0.57 |
| different_target | 0.27 | 0.32 |
| short | 0.22 | 0.28 |
| inv_elongation | 0.20 | 0.07 |
| inv_emoji_append | 0.17 | 0.03 |
| emoji | 0.15 | 0.27 |
| negation | 0.10 | 0.20 |
| romanized | 0.10 | 0.30 |
| codemixed | 0.08 | 0.20 |
| typos | 0.07 | 0.17 |
| neutral_topic | 0.03 | 0.13 |
| long / offtopic / inv_whitespace | 0.00 | 0.00 |
Limitations and biases
- Training text is mostly machine-translated from English tweets/news; style differs from real Hindi/Bengali comments.
- The gold set, the validation set and the targeted examples were written by the project author; shared style may make scores on them optimistic.
- The gold set was used for evaluation twice (v1 and v2), so it is no longer a fully untouched test set.
- v2 is worse than v1 on the challenge suite's negation-flip, sarcasm, elongation and appended-emoji tests, and on "different target" comments in the gold set (accuracy 0.69 -> 0.56).
- v2 is large (about 7.7 GB) and slow on CPU; the single MuRIL model at the repository root is the fast option.
- The model may reflect political framings present in the English source data (US/UK climate debate).
How to use
The model code lives in the GitHub repository; install it first:
git clone https://github.com/Aakash25-11-04/Climate_Stance_Indic.git
cd Climate_Stance_Indic
pip install -r requirements.txt && pip install -e .
Full final model (v2) (average of 11 members):
from huggingface_hub import snapshot_download
from stance.models.ensemble import EnsembleModel
root = snapshot_download('Aakash25-11-04/Climate_Stance_Indic')
model = EnsembleModel.from_dir(root)
texts, langs = ['जलवायु परिवर्तन एक गंभीर समस्या है', 'global warming sab jhooth hai'], ['hi', 'hi']
probs = model.combine(model.member_probas(texts, langs)) # columns: Favour, Against, None
Single transformer only (MuRIL, pair input, English claim, v2 training data; much faster, validation macro F1 0.804):
from stance.models.transformer import TransformerStanceModel
m = TransformerStanceModel.load(root)
m.predict(['জলবায়ু পরিবর্তন একটি গুরুতর সমস্যা'], ['bn'])
From a clone of the repository: python scripts/predict.py --input comments.csv --output preds.csv --model final.
Citation
If you use this model or dataset pipeline, cite the repository and the source datasets listed in the datasheet.