# g2pkk
This is a cross-platform g2p for Korean.
g2pkk is a library that made [Kyubyong's g2pk](https://github.com/Kyubyong/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](https://github.com/koshort/pyeunjeon), which enables mecab to be used in Windows, and other operating systems use [python-mecab-ko](https://github.com/jonghwanhyeon/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](https://github.com/Kyubyong/g2pK)
Raw data
{
"_id": null,
"home_page": "https://github.com/harmlessman/g2pkk",
"name": "g2pkk",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "",
"author": "harmlessman",
"author_email": "harmlessman17@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/2c/ec/01d2a85b19b6c5627ed6b0bc60d867440beb4c43c5dbc2bad619e7bdbe12/g2pkk-0.1.2.tar.gz",
"platform": null,
"description": "# g2pkk\nThis is a cross-platform g2p for Korean.\n\ng2pkk is a library that made [Kyubyong's g2pk](https://github.com/Kyubyong/g2pK) work in Windows.\nThe reason why g2pk does not work well in Windows is that the `mecab`, the morpheme analyzer used by g2pk, causes build errors in Windows.\ng2pkk uses a different morpheme analyzer depending on the operating system.\nWindows uses [eunjeon](https://github.com/koshort/pyeunjeon), which enables mecab to be used in Windows, and other operating systems use [python-mecab-ko](https://github.com/jonghwanhyeon/python-mecab-ko), which was previously used in g2pk.\n\nInstall 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.\n\n## Requirements\n* python >= 3.6\n* jamo\n* nltk\n\n\n## Installation\n```\npip install g2pkk\n```\n\n\n## How To Use\ng2pkk uses same syntaxes as g2pk.\n```\n>>> from g2pkk import G2p\n>>> g2p = G2p(\"\ud3ec\uc0c1\uc740 \uc5f4\uc2ec\ud788 \ud55c \uc544\uc774\uc5d0\uac8c\ub9cc \uc8fc\uc5b4\uc9c0\uae30 \ub54c\ubb38\uc5d0 \ud3ec\uc0c1\uc778 \uac83\uc785\ub2c8\ub2e4.\")\n>>> g2p(\"\ud3ec\uc0c1\uc73c \ub148\uc2ec\ud788 \ud558 \ub098\uc774\uc5d0\uac8c\ub9cc \uc8fc\uc5b4\uc9c0\uae30 \ub54c\ubb34\ub124 \ud3ec\uc0c1\uc778 \uac70\uc2ec\ub2c8\ub2e4.\")\n\n```\nIf you want more information, check [g2pk](https://github.com/Kyubyong/g2pK)\n\n",
"bugtrack_url": null,
"license": "Apache License 2.0",
"summary": "g2pkk: g2p module for Korean(cross platform)",
"version": "0.1.2",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "259e37665b4cf4e99dd4d294b178f79cd70fed2c5beff995e77132ceda97cfa1",
"md5": "a0c63fde3220ce2c2b076bc2822748de",
"sha256": "f1d551f35d3b9065f75749c724e65b28731fdc3262e5e9657cb57e3f7b5dcac3"
},
"downloads": -1,
"filename": "g2pkk-0.1.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a0c63fde3220ce2c2b076bc2822748de",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 25776,
"upload_time": "2022-09-05T07:32:36",
"upload_time_iso_8601": "2022-09-05T07:32:36.739938Z",
"url": "https://files.pythonhosted.org/packages/25/9e/37665b4cf4e99dd4d294b178f79cd70fed2c5beff995e77132ceda97cfa1/g2pkk-0.1.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "2cec01d2a85b19b6c5627ed6b0bc60d867440beb4c43c5dbc2bad619e7bdbe12",
"md5": "0054c53a0d24508e25330b0b0c6a8a3e",
"sha256": "61aad5d41b67d71dd29b8570fc90d2c89cb76493170101d92492649521b447e4"
},
"downloads": -1,
"filename": "g2pkk-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "0054c53a0d24508e25330b0b0c6a8a3e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 24308,
"upload_time": "2022-09-05T07:32:39",
"upload_time_iso_8601": "2022-09-05T07:32:39.137855Z",
"url": "https://files.pythonhosted.org/packages/2c/ec/01d2a85b19b6c5627ed6b0bc60d867440beb4c43c5dbc2bad619e7bdbe12/g2pkk-0.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-09-05 07:32:39",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "harmlessman",
"github_project": "g2pkk",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "g2pkk"
}