The 12th Workshop on Asian Translation (WAT 2025) is held together with AACL-IJCNLP 2025 this year.
This repository contains a baseline method for the WAT 2025 Shared Task on Indic-English Document-Level Machine Translation.
The baseline uses a Large Language Model-based approach to perform translation between English and 11 Indic languages. The LLM used in this implementation is Llama-3.1-8B-Instruct.
/
├── data/ # Test and development data for each language pair.
├── result/ # Output directory for translation results and evaluation scores.
├── scripts/ # Shell scripts to run the main pipeline components.
├── src/ # Python source code for each step of the pipeline.
├── submission_teamname.zip # An example of the zip file to be submitted
├── README.md # This file.
src/:download_data.py: Script to download the necessary datasets.gene_prompt.py: Generates the prompts for the language model based on the input data.inference_prompt.py: Runs the translation inference using the generated prompts and a language model.evaluate.py: Evaluates the generated translations against the reference files and calculates chrF scores.
scripts/:run.sh: The main executable script that runs the entire pipeline from prompt generation to evaluation.gene_prompt.sh,inference_prompt.sh,evaluate.sh: Wrapper scripts for the corresponding Python files insrc/.
data/: Contains the development and test sets, organized by language pair (e.g.,eng_ben,eng_hin).result/:- Stores all outputs, including generated translations and logs.
result/prompt/all_chrf_scores.tsv: The final aggregated table of chrF scores for all language pairs and translation directions.
-
Clone the repository:
git clone git@github.com:shyyhs/WAT25_IndicDoc.git cd WAT25_IndicDoc -
Install dependencies: It is recommended to create a virtual environment first.
python -m venv venv source venv/bin/activate pip install -r requirements.txt
The entire pipeline can be found in the run.sh script.
bash scripts/run.shThe script will execute the following steps in order:
- Dataset Collection
- Generate Prompts: Creates formatted prompts for the LLM.
- Run Inference: Feeds the prompts to the model to get translations.
- Evaluate: Calculates the chrF score for the translations.
The final results will be available in result/prompt/all_chrf_scores.tsv.