Skip to main content

g2pkk: g2p module for Korean(cross platform)

Project description

g2pkk

This is a cross-platform g2p for Korean.

g2pkk is a library that made Kyubyong's g2pk work in Windows. The reason why g2pk does not work well in Windows is that the mecab, the morpheme analyzer used by g2pk, causes build errors in Windows. g2pkk uses a different morpheme analyzer depending on the operating system. Windows uses eunjeon, which enables mecab to be used in Windows, and other operating systems use python-mecab-ko, which was previously used in g2pk.

Install g2pkk and make sure that a morpheme analyzer exists for the operating system of the system you are using for the first time, and if not, proceed with the installation automatically.

Requirements

  • python >= 3.6
  • jamo
  • nltk

Installation

pip install g2pkk

How To Use

g2pkk uses same syntaxes as g2pk.

>>> from g2pkk import G2p
>>> g2p = G2p("포상은 열심히 한 아이에게만 주어지기 때문에 포상인 것입니다.")
>>> g2p("포상으 녈심히 하 나이에게만 주어지기 때무네 포상인 거심니다.")

If you want more information, check g2pk

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

g2pkk-0.1.2.tar.gz (24.3 kB view details)

Uploaded Source

Built Distribution

g2pkk-0.1.2-py3-none-any.whl (25.8 kB view details)

Uploaded Python 3

File details

Details for the file g2pkk-0.1.2.tar.gz.

File metadata

  • Download URL: g2pkk-0.1.2.tar.gz
  • Upload date:
  • Size: 24.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.12

File hashes

Hashes for g2pkk-0.1.2.tar.gz
Algorithm Hash digest
SHA256 61aad5d41b67d71dd29b8570fc90d2c89cb76493170101d92492649521b447e4
MD5 0054c53a0d24508e25330b0b0c6a8a3e
BLAKE2b-256 2cec01d2a85b19b6c5627ed6b0bc60d867440beb4c43c5dbc2bad619e7bdbe12

See more details on using hashes here.

File details

Details for the file g2pkk-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: g2pkk-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 25.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.12

File hashes

Hashes for g2pkk-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f1d551f35d3b9065f75749c724e65b28731fdc3262e5e9657cb57e3f7b5dcac3
MD5 a0c63fde3220ce2c2b076bc2822748de
BLAKE2b-256 259e37665b4cf4e99dd4d294b178f79cd70fed2c5beff995e77132ceda97cfa1

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