vanikanjirangat/Tokenizer_Fairness_Dialect

Python

0

70 commits

updated Sep 25, 2025

See the code

README

This repo consists the scripts and notebooks related to our EMNLP 2025 main paper:

Tokenization and Representation Biases in Multilingual Models on Dialectal NLP Tasks

Intrinsic Analysis

Intrinsic analysis was performed using Tokenization Parity (TP) and Information Parity (IP) metrics on the FLORES-200 parallel dataset.

1️⃣ Tokenization Parity (TP)

2️⃣ Information Parity (IP)


Extrinsic Analysis

1️⃣ Dialect Identification

Mono-label DI:

Multi-label DI (Spanish & French):


2️⃣ Topic Classification & Extractive QA


Example Usage

Run the dialect classification script with custom hyperparameters:

python llama3_classification_hyper.py --lora_r 8 --epochs 8 --dropout 0.1


python llama3_classification_inference.py --experiment OUTPUT-PATH
 




vanikanjirangat/Tokenizer_Fairness_Dialect

Python

0

70 commits

updated Sep 25, 2025

See the code

README

This repo consists the scripts and notebooks related to our EMNLP 2025 main paper:

Tokenization and Representation Biases in Multilingual Models on Dialectal NLP Tasks

Intrinsic Analysis

Intrinsic analysis was performed using Tokenization Parity (TP) and Information Parity (IP) metrics on the FLORES-200 parallel dataset.

1️⃣ Tokenization Parity (TP)

2️⃣ Information Parity (IP)


Extrinsic Analysis

1️⃣ Dialect Identification

Mono-label DI:

Multi-label DI (Spanish & French):


2️⃣ Topic Classification & Extractive QA


Example Usage

Run the dialect classification script with custom hyperparameters:

python llama3_classification_hyper.py --lora_r 8 --epochs 8 --dropout 0.1


python llama3_classification_inference.py --experiment OUTPUT-PATH