Downloads · 30 days
0
pagantibet/normalisationS2S-tokenised
normalisationS2S-tokenised is a text generation model from pagantibet. Use it when you need the model to write or continue text. The card lists the license as cc-by-nc-sa-4.0.
A character-level sequence-to-sequence (S2S) encoder-decoder transformer model for the normalisation of Old/Classical Tibetan, converting diplomatic (non-standard, abbreviated) Tibetan manuscript text into Standard Cl…
Downloads · 30 days
0
Access
Public
Updated Apr 7, 2026
Repo size
130 MB
Likes
0
Public
Click a slice to open those files.
.pt130 MB · 100%
From the Hugging Face model README
A character-level sequence-to-sequence (S2S) encoder-decoder transformer model for the normalisation of Old/Classical Tibetan, converting diplomatic (non-standard, abbreviated) Tibetan manuscript text into Standard Classical Tibetan. This is the tokenised variant of the model — input and output have been pre-segmented into tokens using a customised version of the Botok Tibetan tokeniser prior to training (see Data Preparation).
Important: Results from Meelen & Griffiths (2026) indicate that for most use cases, normalisation performs better when applied to non-tokenised text. Tokenisation is best deferred until after normalisation in the processing pipeline. For general use, the non-tokenised model pagantibet/normalisationS2S-nontokenised is therefore recommended. The tokenised model is provided for research purposes and for direct comparison of the two approaches.
This model is part of the PaganTibet project and accompanies the paper:
Meelen, M. & Griffiths, R.M. (2026) 'Historical Tibetan Normalisation: rule-based vs neural & n-gram LM methods for extremely low-resource languages' in Proceedings of the AI4CHIEF conference, Springer.
Please cite the paper and the code repository when using this model.
Old/Classical Tibetan manuscripts present major normalisation challenges: extensive abbreviations, non-standard orthography, scribal variation, and a near-complete absence of gold-standard parallel data. This model addresses these challenges using a hybrid approach combining a neural sequence-to-sequence transformer with optional rule-based pre-/post-processing and KenLM n-gram language model ranking (the latter applied at inference time; see the Inference scripts).
The model operates at the character level on tokenised input — that is, the source text has been segmented into Tibetan word tokens using a customised version of Botok before being passed to the model (see Data Preparation). Both source (diplomatic) and target (normalised) sequences in the training data were tokenised in this way. At inference time, input text must likewise be tokenised using the same tool before being fed to this model.
Full hyperparameter settings are reported in the Appendix of Meelen & Griffiths (2026).
The model was trained on a tokenised version of the dataset pagantibet/normalisation-S2S-training (~2 million rows), which combines:
botokenise_src-tgt.py in the Data Preparation scripts).Additional training data was derived from the Standard Classical Tibetan ACTib corpus (>180 million words; Meelen & Roux 2020), processed into manuscript-length lines and tokenised accordingly.
Full details of the data preparation and augmentation pipeline are described in the GitHub repository.
This model is intended for:
Note on pipeline order: Results in Meelen & Griffiths (2026) show that tokenisation is best left until after normalisation in the processing pipeline. For most use cases, the non-tokenised model pagantibet/normalisationS2S-nontokenised is recommended. For particularly challenging diplomatic corpora, combining either model with the KenLM n-gram ranker and rule-based pre/post-processing (see Inference) yields the best results.
Input text must first be tokenised using a customised version of the Botok Tibetan tokeniser:
python3 botokenise_src-tgt.py
See the Custom Boktok ReadMe for full tokenisation details.
The model can then be used with the inference scripts provided in the PaganTibet normalisation repository. Six inference modes are available, ranging from rule-based only to combined neural + n-gram + rule-based pipelines:
# Run on a GPU cluster via Slurm
sbatch tibetan-inference-flexible.sh
# Or run directly
python3 tibetan-inference-flexible.py
See the Inference ReadMe for full usage details and configuration options.
The training script includes a built-in beam search evaluation. Separate evaluation is available via the evaluation scripts, which reports:
Two versions of the evaluation script are available:
sbatch evaluate-model.sh
# or
python3 evaluate_model.py
# or
python3 evaluate-model-withCIs.py
Full evaluation results including confidence intervals and example predictions are available in the tokenised Evaluations directory of the repository.
All models and datasets from the PaganTibet normalisation project are collected in the Normalisation collection on Hugging Face.
| Resource | Link |
|---|---|
| Non-tokenised model (recommended) | pagantibet/normalisationS2S-nontokenised |
| Training dataset | pagantibet/normalisation-S2S-training |
| Abbreviation dictionary | pagantibet/Tibetan-abbreviation-dictionary |
| Training & inference code | github.com/pagantibet/normalisation |
| ACTib corpus | Zenodo (Meelen & Roux 2020) |
| PaganTibet project | pagantibet.com |
This model is released under CC BY-NC-SA 4.0. It may be used freely for non-commercial research and educational purposes, with attribution and under the same licence terms.
This work was partially funded by the European Union (ERC, Pagan Tibet, grant no. 101097364). Views and opinions expressed are those of the authors only and do not necessarily reflect those of the European Union or the European Research Council Executive Agency.