# wetext
Python runtime for WeTextProcessing (does not depend on Pynini).
## Usage
``` bash
$ pip install wetext
$ python
```
``` python
>>> from wetext import Normalizer
>>> normalizer = Normalizer(lang="zh", operator="tn", remove_erhua=True)
>>> normalizer.normalize("你好 WeTextProcessing 1.0,全新版本儿,全新体验儿,简直666")
你好 WeTextProcessing 一点零,全新版本,全新体验,简直六六六
```
Raw data
{
"_id": null,
"home_page": "https://github.com/pengzhendong/wetext",
"name": "wetext",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": "Zhendong Peng",
"author_email": "pzd17@tsinghua.org.cn",
"download_url": null,
"platform": null,
"description": "# wetext\n\nPython runtime for WeTextProcessing (does not depend on Pynini).\n\n## Usage\n\n``` bash\n$ pip install wetext\n$ python\n```\n\n``` python\n>>> from wetext import Normalizer\n>>> normalizer = Normalizer(lang=\"zh\", operator=\"tn\", remove_erhua=True)\n>>> normalizer.normalize(\"\u4f60\u597d WeTextProcessing 1.0\uff0c\u5168\u65b0\u7248\u672c\u513f\uff0c\u5168\u65b0\u4f53\u9a8c\u513f\uff0c\u7b80\u76f4666\")\n\u4f60\u597d WeTextProcessing \u4e00\u70b9\u96f6\uff0c\u5168\u65b0\u7248\u672c\uff0c\u5168\u65b0\u4f53\u9a8c\uff0c\u7b80\u76f4\u516d\u516d\u516d\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "WeTextProcessing Runtime",
"version": "0.0.3",
"project_urls": {
"Homepage": "https://github.com/pengzhendong/wetext"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "533f12ecd7ab74b4423df6a4ab44d2271817b76fb0612523595dfd8d238bb5a5",
"md5": "93685c8f17639626190bac1fefe26f88",
"sha256": "df38729828b68e084c64b45dade48d2716f11d604c394ca2748502a9e9a5ba4e"
},
"downloads": -1,
"filename": "wetext-0.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "93685c8f17639626190bac1fefe26f88",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 10042,
"upload_time": "2025-01-07T14:10:36",
"upload_time_iso_8601": "2025-01-07T14:10:36.333979Z",
"url": "https://files.pythonhosted.org/packages/53/3f/12ecd7ab74b4423df6a4ab44d2271817b76fb0612523595dfd8d238bb5a5/wetext-0.0.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-07 14:10:36",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "pengzhendong",
"github_project": "wetext",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "kaldifst",
"specs": []
},
{
"name": "modelscope",
"specs": []
}
],
"lcname": "wetext"
}