Skip to main content

The purpose of this module is user-friendly translation and transliteration of Classical Tibetan.

Project description

mlotsawa

Description

The purpose of this module is user-friendly translation and transliteration of Classical Tibetan.

Currently, separate classes are provided for translation and transliteration tasks. Both classes will accept either a list of strings, or a single string. The output of each will be of the same type as the input.

Under the hood, this module uses the T5 transformer architecture, custom fine-tuned on data from Lotsawa House.

The models and datasets used by this project can be found on Hugging Face where you can find more information on training, data collection, and how to use these models and datasets for your own projects.

This module is part of the larger MLotsawa project for machine translation of Literary Tibetan. The code for the entire project, including this module is available on GitHub here.

Installation

pip install mlotsawa

Examples

For transliteration:

from mlotsawa.transliterator import Transliterator 

tibetan_text = '<your Tibetan text>'

transliterator = Transliterator()

phonetics = transliterator.transliterate(tibetan_text)

For translation:

from mlotsawa.translator import Translator 

tibetan_text = '<your Tibetan text>' # may be in Tibetan script or phoneticized

translator = Translator()

translation = translator.translate(tibetan_text)

License

Shield: CC BY-NC-SA 4.0

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

CC BY-NC-SA 4.0

Owner

@billingsmoore

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mlotsawa-0.4.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

mlotsawa-0.4.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file mlotsawa-0.4.0.tar.gz.

File metadata

  • Download URL: mlotsawa-0.4.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for mlotsawa-0.4.0.tar.gz
Algorithm Hash digest
SHA256 75f88041fcfaaae46d635ab9fce1fca56149284d84cb93ce19a54a83022ce5e5
MD5 57b28e7c51a1b1dab4fb0d45c2f4e247
BLAKE2b-256 eaa9bad43227d0b054e794b1500d8180fece8f946f5101a9d717bb52982b5915

See more details on using hashes here.

File details

Details for the file mlotsawa-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: mlotsawa-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for mlotsawa-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c13b3a35363056803cf46166b06688a06debbd647dc0f3d8a0128b56e5cb3bc4
MD5 a40dcc5f5e844beed46ffde671bd575b
BLAKE2b-256 67da0495829884eee198f5a70e97fa874f8cb26c4bd2e2bd826811f833fa06b1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page