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.1.tar.gz (5.2 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.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: myword-0.1.1.tar.gz
  • Upload date:
  • Size: 5.2 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.1.tar.gz
Algorithm Hash digest
SHA256 4aa7fb232fefbc877e188f605fefdd592e8bfb881371359150dafcb184027ae7
MD5 3d4d86f683f2f60120a9945705c0a671
BLAKE2b-256 a25ee849fd1b93cdd579f24b5d3fb3ec226a7bb6f6c60719d52efed268d60489

See more details on using hashes here.

File details

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

File metadata

  • Download URL: myword-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 076f1508917a9af51b0a644373b8b3663c1a6b122676efb4baf24dd3bb5d7b2c
MD5 5468b9d53749e87edd34fff7a66bb8df
BLAKE2b-256 f315d9a8d2b1a4a44d5d0900c933744421b6c51b9b4a3edbd37f0579020ee795

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