Datasets:

Modalities:
Text
Formats:
parquet
ArXiv:
Libraries:
Datasets
pandas
Files changed (1) hide show
  1. README.md +100 -2
README.md CHANGED
@@ -52,5 +52,103 @@ configs:
52
  path: data/train-*
53
  ---
54
 
55
- This is the HF repo for the IndicMTEval dataset.
56
- See the github for the same: https://github.com/AI4Bharat/IndicMT-Eval
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52
  path: data/train-*
53
  ---
54
 
55
+ # IndicMT-Eval
56
+
57
+ This repository contains the code for the paper "IndicMT Eval: A Dataset to Meta-Evaluate Machine Translation Metrics for Indian Languages" to appear at ACL 2023
58
+
59
+ ## Contents
60
+
61
+ - [Overview](#overview)
62
+ - [MQM Dataset](#mqm-dataset)
63
+ - [How to use](#How-to-use)
64
+ - [Indic Comet](#indic-comet)
65
+ - [Other Metrics](#other-metrics)
66
+ - [Citation](#citation)
67
+
68
+ ## Overview
69
+
70
+ We contribute a Multidimensional Quality Metric (MQM) dataset for Indian languages created by taking outputs generated by 7 popular MT systems and asking human annotators to judge the quality of the translations using the MQM style guidelines. Using this rich set of annotated data, we show the performance of 16 metrics of various types on evaluating en-xx translations for 5 Indian languages. We provide an updated metric called Indic-COMET which not only shows stronger correlations with human judgement on Indian languages, but is also more robust to perturbations.
71
+
72
+ Please find more details of this work in our paper (link coming soon).
73
+
74
+ ## MQM Dataset
75
+
76
+ The MQM annotated dataset collected with the help of language experts for the 5 Indian lamguages (Hindi, Tamil, Marathi, Malayalam, Gujarati) can be downloaded from here (link coming soon).
77
+
78
+ An example of an MQM annotation containing the source, reference and the translated output with error spans as demarcated by the annotator looks like the following:
79
+ ![MQM-example](https://github.com/AI4Bharat/IndicMT-Eval/assets/23221743/0296986f-bb89-4044-88ef-b8fb71acf9ee)
80
+
81
+ More details regarding the instructions provided and the procedures followed for annotations are present in the paper.
82
+
83
+
84
+ ### How to use
85
+
86
+ The `datasets` library allows you to load and pre-process your dataset in pure Python, at scale. The dataset can be downloaded and prepared in one call to your local drive by using the `load_dataset` function.
87
+
88
+
89
+ - Before downloading first follow the following steps:
90
+
91
+ 1. Gain access to the dataset and get the HF access token from: [https://huggingface.co/settings/tokens](https://huggingface.co/settings/tokens).
92
+ 2. Install dependencies and login HF:
93
+ - Install Python
94
+ - Run `pip install librosa soundfile datasets huggingface_hub[cli]`
95
+ - Login by `huggingface-cli login` and paste the HF access token. Check [here](https://huggingface.co/docs/huggingface_hub/guides/cli#huggingface-cli-login) for details.
96
+
97
+ For example:
98
+ ```python
99
+ from datasets import load_dataset
100
+ ds = load_dataset("ai4bharat/IndicMTEval")
101
+ ```
102
+
103
+
104
+ Using the datasets library, you can also stream the dataset on-the-fly by adding a `streaming=True` argument to the `load_dataset` function call. Loading a dataset in streaming mode loads individual samples of the dataset at a time, rather than downloading the entire dataset to disk.
105
+ ```python
106
+ from datasets import load_dataset
107
+ ds = load_dataset("ai4bharat/IndicMTEval",streaming=True)
108
+ print(next(iter(ds)))
109
+ ```
110
+
111
+ ## Indic Comet
112
+
113
+ We load the pretrained encoder and initialize it with either XLM-Roberta, COMET-DA or COME-MQM weights. During training, we divide the model parameters into two groups: the encoder parameters, that include the encoder model and the regressor parameters, that include the parameters from the top feed-forward network. We apply gradual unfreezing and discriminative learning rates, meaning that the encoder model is frozen for one epoch while the feed-forward is optimized with a learning rate. After the first epoch, the entire model is fine-tuned with a different learning rate. Since we are fine-tuning on a small dataset, we make use of early stopping with a patience of 3. The best saved checkpoint is decided using the overall Kendall-tau correlation on the test set. We use the [COMET](https://github.com/Unbabel/COMET) repository for training and our checkpoints are compatible with their setup.
114
+
115
+ Download the best checkpoint here
116
+
117
+ | MQM | DA |
118
+ | ---- | --- |
119
+ | [indic-comet-mqm](https://objectstore.e2enetworks.net/indic-asr-public/data/anushka/comet_mqm_1.5e-5/comet_mqm_1.5e-5/checkpoints/epoch=2-step=1875-val_kendall=0.455.ckpt) | [indic-comet-da](https://objectstore.e2enetworks.net/indic-asr-public/data/anushka/comet_da_1.5e-5/comet_da_1.5e-5/checkpoints/epoch=3-step=2500-val_kendall=0.456.ckpt) |
120
+ | [hparams.yaml](https://objectstore.e2enetworks.net/indic-asr-public/data/anushka/comet_da_1.5e-5/comet_da_1.5e-5/hparams.yaml) | [hparamas.yaml](https://objectstore.e2enetworks.net/indic-asr-public/data/anushka/comet_mqm_1.5e-5/comet_mqm_1.5e-5/hparams.yaml) |
121
+
122
+ ## Other Metrics
123
+
124
+ We followed the implementation of metrics with the help of the following repositories:
125
+ For BLEU, METEOR, ROUGE-L, CIDEr, Embedding Averaging, Greedy Matching, and Vector Extrema, we use the implementation provided by [Sharma et al. (2017)](https://github.com/Maluuba/nlg-eval). For chrF++, TER, BERTScore, and BLEURT, we use the repository of [Castro Ferreira et al. (2020)](https://github.com/WebNLG/GenerationEval). For SMS, WMDo, and Mover-Score, we use the implementation provided by [Fabbri et al. (2020)](https://github.com/Yale-LILY/SummEval). For all the remaining task-specific metrics, we use the official codes from the respective papers.
126
+
127
+ <br>
128
+ The python file code/evaluate.py runs all of these metrics on the given dataset.
129
+
130
+ ## Citation
131
+ If you find IndicMTEval useful in your research or work, please consider citing our paper.
132
+ ```
133
+ @article{DBLP:journals/corr/abs-2212-10180,
134
+ author = {Ananya B. Sai and
135
+ Tanay Dixit and
136
+ Vignesh Nagarajan and
137
+ Anoop Kunchukuttan and
138
+ Pratyush Kumar and
139
+ Mitesh M. Khapra and
140
+ Raj Dabre},
141
+ title = {IndicMT Eval: {A} Dataset to Meta-Evaluate Machine Translation metrics
142
+ for Indian Languages},
143
+ journal = {CoRR},
144
+ volume = {abs/2212.10180},
145
+ year = {2022}
146
+ }
147
+
148
+ @article{singh2024good,
149
+ title={How Good is Zero-Shot MT Evaluation for Low Resource Indian Languages?},
150
+ author={Singh, Anushka and Sai, Ananya B and Dabre, Raj and Puduppully, Ratish and Kunchukuttan, Anoop and Khapra, Mitesh M},
151
+ journal={arXiv preprint arXiv:2406.03893},
152
+ year={2024}
153
+ }
154
+ ```