Skip to main content

Transform Khmer Personal Name into Latin and vice-versa.

Project description

Khmer Latin Name Transformer

Transform Khmer Personal Name into Latin and vice-versa.

[Google Colab]

Important!

Make sure you have pynini installed on your current environment before install this library. To install pynini, use this

conda install -c conda-forge pynini

Install khmer_latin_name_transformer from PyPI

pip install khmer-latin-name-transformer

Usage

from khmer_latin_name_transformer import (
  to_khmer,
  to_khmer_pronounce,
  to_latin
)

to_khmer("DARA VISAL")
# => "តារា វិសាល"

to_khmer("linda sokha")
# => "លីនដា សុខា"

to_latin("តារា វិសាល")
# => "DARA VISAL"

to_khmer_pronounce("ភក្ត្រា")
# => ភ័ក-ត្រា

to_khmer_pronounce("និន្ទ្រា")
# => និន-ទ្រា

License

Apache 2.0

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

khmer_latin_name_transformer-0.0.4.tar.gz (3.1 MB view hashes)

Uploaded Source

Built Distribution

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