MLotsawa
Note: This repo is in the middle of a significant reorganization. Several bodies of work that
had accumulated here (dataset creation, OCR, embedding models, ASR experiments, domain tagging,
individual papers, etc.) are being split out into their own focused repos — see
Related Repositories below. Expect continued restructuring; some docs and
links may be in flux until this settles.
Introduction
This project is an attempt at creating user-friendly translation software to be used for translating from Literary Tibetan to English, with a particular focus on the literature of Tibetan Buddhism. The objective is to produce a tool which can assist (not replace!) human translators in the process of creating English language versions of the texts.
The intended use case for this project is to be used locally on a reasonably priced computer of the kind that might be used by a non-specialist. The intended specifications for this imagined machine are 8 GB of RAM with no dedicated GPU. For example, an ideal product would be usable on a reasonably new MacBook Air or mid-price HP laptop.
In general, if you acquired your computer after 2020, you should be fine. If you have questions about your computer or have trouble running the app, please let me know.
For any questions or feedback, please email me at billingsmoore [at] gmail [dot] com with ‘MLotsawa’ in the subject line.
The code for this project is available in Notebooks.
Documentation on the process of training and testing models can be found in Docs.
All models and datasets created and used by this project can be found on Hugging Face
If you are interested in the research aspect of this project, I suggest reading Validating Retrieval Augmented Translation With T5 or Knowledge Graphs for Accessible Machine Generated Translations and Commentaries
Getting Started
The previous PyPI module and WordPress/React integrations have been deprecated and removed from this
repository. For now, the easiest way to try translation is
SimpleTranslationUI, a free
Hugging Face Space with a graphical editor for translating .txt, .docx, and .pdf documents
(source on GitHub). It runs on
mlotsawa-ground-base by default, or an OpenRouter model of your choice if you provide an API key.
If you have any trouble getting started please don’t hesitate to contact me for help or to set up time for a one-on-one demo.
Work that used to live in this repo, or that this repo’s models feed into downstream, now lives in
its own place:
Applications
This paper’s code
Dataset creation/curation
Models
- minilm-bo — a Tibetan sentence-embedding model
(superseded by
khyentsevision/minilm-bo-en-sim for similarity tasks)
- buddhist-domain-tagging — BERT
classifiers tagging translations by subject domain
Exploratory R&D
Writing
- openpecha-forum-posts — published
research write-ups on data cleaning, topic modeling, and knowledge graphs
评论