Skip to main content

Myanmar (Burmese) Syllable, Word, and Phrase

Project description

Myanmar Tokenizer

Syllable, word and phrase segmenter for Burmese (Myanmar language)

GitHub: https://github.com/ye-kyaw-thu/myWord

Install

pip install myword

Examples

from myword import SyllableTokenizer, WordTokenizer, PhraseTokenizer

syltok = SyllableTokenizer()
print(syltok.tokenize("မြန်မာနိုင်ငံ။"))
# ['မြန်', 'မာ', 'နိုင်', 'ငံ', '။']

wordtok = WordTokenizer()
print(wordtok.tokenize("မြန်မာနိုင်ငံ။"))
# ['မြန်မာ', 'နိုင်ငံ', '။']

phrtok = PhraseTokenizer()
print(phrtok.tokenize("မြန်မာနိုင်ငံသည် အရှေ့တောင်အာရှတွင် တည်ရှိသည်။"))
# ['မြန်မာ', 'နိုင်ငံ', 'သည်_အရှေ့တောင်', 'အာရှ', 'တွင်', 'တည်_ရှိ', 'သည်_။']

phrtok = PhraseTokenizer()
print(phrtok.tokenize("သူဟာလက်ဝှေ့ပွဲမှာအနိုင်ရနိုင်စရာရှိတယ်"))

phrtok = PhraseTokenizer(threshold = 0.1, minfreq = 3)
print(phrtok.tokenize("သူဟာလက်ဝှေ့ပွဲမှာအနိုင်ရနိုင်စရာရှိတယ်"))

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

myword-0.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

myword-0.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file myword-0.1.0.tar.gz.

File metadata

  • Download URL: myword-0.1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.4

File hashes

Hashes for myword-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c0ec24cebdbb35c2fd9d585efb4632f24e8d4bf654814645d5a1ab6c5cb8c73d
MD5 010bb95a53f182a66b8e83a17bb64fcb
BLAKE2b-256 f180a5f0779cff8a6a5384df402b89dbb8093a95c105d89408b5f9cf88353f51

See more details on using hashes here.

File details

Details for the file myword-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: myword-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.4

File hashes

Hashes for myword-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b02d6ffc1b773d8441d8cadaf8d33d4eede6b8b67176c31ddd6dcb05aef03d42
MD5 b8a8d666be52db7c9227526c9382b6c0
BLAKE2b-256 612bb7aa3bd1e4933c51172f70d37efb5e732d93442be93be1e0f5939b6cf442

See more details on using hashes here.

Supported by

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