TTlab at StanceEval-2026, this repo contains the code for our submission for StanceEval-2026
Jupyter Notebook
0
12 commits
updated Jul 23, 2026
This repository contains the source code and experimental setup for our submission to StanceEval-2026: Track 2, focusing on zero-shot and cross-target Arabic stance detection.
The architecture utilizes a prompt-based Masked Language Modeling (MLM) approach with AraBERT, designed to generalize to completely unseen topics using the Mawqif-v2 dataset.
Favor, Against, or None.Favor and Against, excluding None).Our approach frames stance detection as a text-to-text fill-in-the-blank task to maximize the zero-shot capabilities of pre-trained language models.
aubmindlab/bert-large-arabertv02-twitter to predict the masked stance label based on the text, target, and auxiliary sentiment labels.None examples by permuting the target topics across the training set (target mismatching).None, Class-Weighted) across different random seeds. The final predictions are aggregated using:
The model is trained and evaluated on the Mawqif-v2 dataset.
Text Preprocessing Pipeline:
βββ datasets/
β βββ stance/MawqifV2/ # Contains train.csv and dev.csv
β βββ stance/STANCE_X/ # Intermediate/Pre-training datasets
βββ preprocess_data.py # Text cleaning and synthetic 'None' augmentation
βββ evaluator.py # Favg2, Favg3, and accuracy metric computations
βββ train_for_submission.py # Training loop, data loaders, and ensemble voting
Ensure you have Python 3.8+ installed. Install the required dependencies using the provided requirements.txt file:
pip install -r requirements.txt
The main script handles pre-training, fine-tuning, and evaluation across multiple seeds and configurations.
python train_for_submission.py
Note: Ensure your datasets are placed in the correct directories as defined in the BASE_DIR variable before running the script.
Disclaimer: This README was generated by AI.
TTlab at StanceEval-2026, this repo contains the code for our submission for StanceEval-2026
Jupyter Notebook
0
12 commits
updated Jul 23, 2026
This repository contains the source code and experimental setup for our submission to StanceEval-2026: Track 2, focusing on zero-shot and cross-target Arabic stance detection.
The architecture utilizes a prompt-based Masked Language Modeling (MLM) approach with AraBERT, designed to generalize to completely unseen topics using the Mawqif-v2 dataset.
Favor, Against, or None.Favor and Against, excluding None).Our approach frames stance detection as a text-to-text fill-in-the-blank task to maximize the zero-shot capabilities of pre-trained language models.
aubmindlab/bert-large-arabertv02-twitter to predict the masked stance label based on the text, target, and auxiliary sentiment labels.None examples by permuting the target topics across the training set (target mismatching).None, Class-Weighted) across different random seeds. The final predictions are aggregated using:
The model is trained and evaluated on the Mawqif-v2 dataset.
Text Preprocessing Pipeline:
βββ datasets/
β βββ stance/MawqifV2/ # Contains train.csv and dev.csv
β βββ stance/STANCE_X/ # Intermediate/Pre-training datasets
βββ preprocess_data.py # Text cleaning and synthetic 'None' augmentation
βββ evaluator.py # Favg2, Favg3, and accuracy metric computations
βββ train_for_submission.py # Training loop, data loaders, and ensemble voting
Ensure you have Python 3.8+ installed. Install the required dependencies using the provided requirements.txt file:
pip install -r requirements.txt
The main script handles pre-training, fine-tuning, and evaluation across multiple seeds and configurations.
python train_for_submission.py
Note: Ensure your datasets are placed in the correct directories as defined in the BASE_DIR variable before running the script.
Disclaimer: This README was generated by AI.