semvec/pypi-packages huggingface dataset:
myanmartools 1.2.1
Tools for processing font encodings used in Myanmar
License: Apache License, Version 2.0
Requires Python: >=3.8
Keywords: burmese,encoding,myanmar,nlp,unicode,zawgyi

Myanmar Tools Python Documentation
==================================

This documentation is python specific usage of Myanmar Tools.
For general documentation, see `the top-level README`_.

Installation
------------

From PyPI
*********

``$ pip install myanmartools``

From GitHub
***********

``$ pip install 'git+https://github.com/google/myanmar-tools@master#egg=myanmartools&subdirectory=clients/python'``

Usage Examples
--------------

To detect Zawgyi, create an instance of ZawgyiDetector,
and call ``get_zawgyi_probability`` with a string::

    from myanmartools import ZawgyiDetector

    detector = ZawgyiDetector()
    score = detector.get_zawgyi_probability('မ္း')
    # score is now 0.999772 (very likely Zawgyi)


For Zawgyi-to-Unicode conversion, you can use the ICU library. Install it
using ``pip install PyICU``.

To convert Zawgyi to Unicode, create an instance of ICU Transliterator with
the transform ID "Zawgyi-my", and call ``transiliterate`` with a string::

    from icu import Transliterator

    converter = Transliterator.createInstance('Zawgyi-my')
    output = converter.transliterate('မ္း')
    # output is now 'မ်း'

.. _`the top-level README`: https://github.com/google/myanmar-tools/blob/master/README.md