AjayRangoji's picture
Upload PROJECT.md
f9f18fc verified
|
Raw History Blame Contribute Delete
2.6 kB
# Translation-Guided Sandhi Splitting
## Claim
English translations can choose between candidate sandhi splits well enough to train a
better splitter when gold splits are scarce.
## Core idea
An existing splitter (ByT5-Sanskrit) proposes its top-k splits. A translation scorer checks
which candidate's words are accounted for by the English. The best-matching candidate is used
either as the test-time output (reranking) or as a pseudo-label for training (weak supervision).
Everything else in the original splitter stays unchanged.
## What the paper must show
1. The translation score ranks the gold split first more often than the splitter's own score (pilot).
2. Reranking with the translation improves accuracy on verses that have translations.
3. Translation-guided pseudo-labels beat self-training pseudo-labels, especially with little
gold data. **This is the main result.**
## Conventions (enforce from the start)
- Internal transliteration: **IAST, NFC-normalised, lowercase**. Never mix schemes.
(Decided by what ByT5-Sanskrit was trained on - see LOG.md 2026-10-18.)
- Every script takes `--config` and `--seed`; outputs go to `outputs/<run_name>/`.
- Data files are jsonl, one verse per line:
`{"id", "sanskrit_raw", "sanskrit_gold" (optional), "english" (optional), "source"}`
- Test ids are frozen in `data/splits/` before any training and never regenerated.
- Log every run (config, seed, git commit, metrics) to `results/runs.csv` and `LOG.md`.
## Leakage rules (NON-NEGOTIABLE)
- Remove every dev and test verse from the DCS training data AND from the Itihasa
pseudo-label pool.
- Remove near-duplicates at character similarity >= 0.95 against **both** the training data
and the pseudo-label pool.
- Start from the **pretrained-only** checkpoint `buddhist-nlp/byt5-sanskrit`, never the
segmentation-finetuned one. State in the paper that pretraining saw raw unsegmented DCS /
Sangraha text, which is not gold-split leakage.
- The lemmatiser used by the dictionary scorer must be retrained on the DCS train split with
dev/test removed. Do NOT use `chronbmm/sanskrit5-multitask` for lemmas: it was trained on
gold DCS annotations including our test verses.
## Repo layout
configs/ data/{raw,processed,splits} src/{data,splitter,scorers} scripts/ outputs/ results/ notebooks/
## GPU etiquette
Nodes: 10.0.139.113, 10.0.145.120, 10.0.155.166, 10.0.157.253 (10.0.144.104 is in use by others).
Before every launch: re-check `nvidia-smi --query-compute-apps`, claim only GPUs at 0 MiB with
no processes, pin with CUDA_VISIBLE_DEVICES, never crowd another user's job.