{ "info": { "author": "arcsecw", "author_email": "tob-wang@qq.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development" ], "description": "wubi\n======\n\nYou do not need to modify your model when applied it to Chinese,you can translate chinese chars to wubi ,then you can process chinese chars like english\n\nFor example if you want to use character-level neural network model in chinese chars, you will find it is beteer to translate them from chinese to wubi at first.\n\n\u5f53\u4f60\u5904\u7406\u6c49\u8bed\u65f6,\u4f60\u4e0d\u5fc5\u4fee\u6539\u4f60\u539f\u6765\u7684\u6a21\u578b\u3002\u4f60\u53ef\u4ee5\u5c06\u6c49\u8bed\u7ffb\u8bd1\u6210\u4e94\u7b14\u5b57\u578b\u7801\u3002\u4f60\u5c31\u53ef\u4ee5\u50cf\u5904\u7406\u82f1\u6587\u4e00\u6837\u7684\u5904\u7406\u6c49\u8bed\u4e86\n\n\u6bd4\u5982\u8bf4,\u5982\u679c\u4f60\u60f3\u4f7f\u7528\u4e00\u4e2a\u5b57\u7b26\u7ea7\u795e\u7ecf\u7f51\u7edc\u6a21\u578b\u5904\u7406\u4e2d\u6587,\u4f60\u4f1a\u53d1\u73b0\u6700\u597d\u5148\u5c06\u8fd9\u4e9b\u6c49\u8bed\u7ffb\u8bd1\u6210\u4e94\u7b14\u5b57\u7b26\u3002\n\n\n\u91cd\u8981\u63d0\u793a\n------\n\n\u559c\u6b22\u5c31star\u4e00\u4e0b\n\nif you like it , please star\n\nInstall\n-------\n\n.. code:: bash\n\n $ pip install wubi\n\n\nShort introduce\n-----\n\n.. code:: python\n\n >>> import wubi\n >>> print wubi.get('WenChaoWang\u7231\u81ea\u7531','cw')\n WenChaoWang ep thd mh\n\n >>> print wubi.get('WenChaoWang ep thd mh','wc')\n WenChaoWang\u7231\u81ea\u7531\n >>> print wubi.get('WenChaoWang\u7231\u81ea\u7531','cw','-')\n WenChaoWang-ep-thd-mh\n >>> print wubi.get('WenChaoWang-ep-thd-mh','wc','-')\n WenChaoWang\u7231\u81ea\u7531\n >>> data = wubi.data\n ## data = {\n 'cw':{\n chinese:wubi,\n ...\n }\n 'wc':{\n wubi:chinese,\n ...\n }\n }\n\n\nnotice\n------\n\n you can add your own char->char by modify ./wubi/build_map.py.\n\n \u901a\u8fc7\u4fee\u6539./wubi/build_map.py\u6587\u4ef6,\u4f60\u53ef\u4ee5\u81ea\u884c\u6dfb\u52a0\u65b0\u7684\u6620\u5c04\u5173\u7cfb\u3002\n\n\n //TODO when your chinese text within english the ' ' will be drop\n\n\nLong introduce\n------\n\ninput:\n\n\u5f53\u524d\u81ea\u7136\u8bed\u8a00\u5904\u7406\u6a21\u578b\u4e2d\u5355\u8bcd\u7ea7\u6a21\u578b\u6548\u679c\u5f88\u597d\uff0c\u4f46\u662f\u7531\u4e8e\u82f1\u6587\u5355\u8bcd\u5929\u7136\u7531\u7a7a\u683c\u9694\u5f00\uff0c\u4e2d\u6587\u53ea\u6709\u8fde\u7eed\u7684\u5b57\u4e0e\u6807\u70b9\uff0c\u4e3a\u4e86\u5c06\u5404\u79cd\u5355\u8bcd\u7ea7\u8bed\u8a00\u6a21\u578b\u5e94\u7528\u4e8e\u4e2d\u6587\uff0c\u4e2d\u6587\u5206\u8bcd\u6210\u4e86\u4e2d\u6587\u81ea\u7136\u8bed\u8a00\u5904\u7406\u9886\u57df\u4e00\u4e2a\u57fa\u7840\u6027\u7814\u7a76\u3002\u8fd1\u6765\u7814\u7a76\u8868\u660e\uff0c\u5728\u5f88\u591a\u795e\u7ecf\u7f51\u7edc\u6a21\u578b\u4e2d\uff0c\u5b57\u7b26\u7ea7\u8bed\u8a00\u6a21\u578b\u6548\u679c\u4e5f\u5f88\u597d\uff0c\u800c\u4e14\u4ece\u957f\u8fdc\u6765\u770b\uff0c\u7531\u4e8e\u5b57\u7b26\u7ea7\u8bed\u8a00\u6a21\u578b\u6bd4\u5355\u8bcd\u7ea7\u8bed\u8a00\u6a21\u578b\u4fdd\u7559\u4e86\u66f4\u591a\u7684\u539f\u59cb\u4fe1\u606f\uff0c\u968f\u7740\u795e\u7ecf\u7f51\u7edc\u6a21\u578b\u7684\u53d1\u5c55\u4ee5\u53ca\u8ba1\u7b97\u80fd\u529b\u7684\u63d0\u9ad8\uff0c\u5b57\u7b26\u7ea7\u8bed\u8a00\u6a21\u578b\u7684\u6548\u679c\u5e94\u8be5\u4f1a\u66f4\u597d\u3002\u5c06\u6bcf\u4e00\u4e2a\u4e2d\u6587\u6c49\u5b57\u5f53\u505a\u4e00\u4e2a\u5b57\u7b26\u8f93\u5165\u5b57\u7b26\u7ea7\u8bed\u8a00\u6a21\u578b\u4f1a\u5bfc\u81f4\u5f88\u591a\u95ee\u9898\uff0c\u5b9e\u9a8c\u6548\u679c\u76f8\u5bf9\u82f1\u6587\u8bed\u6599\u6765\u8bf4\u5e76\u4e0d\u7406\u60f3\uff0c\u7ecf\u5b9e\uff0c\u9a8c\u5148\u5c06\u4e2d\u6587\u6c49\u5b57\u8f6c\u5316\u4e3a\u4e94\u7b14\u5b57\u578b\u7801\uff0c\u8f93\u5165\u6a21\u578b\u8ba1\u7b97\u540e\u518d\u5c06\u4e94\u7b14\u5b57\u578b\u7801\u8f6c\u6362\u56de\u6c49\u5b57\u76f4\u89c2\u6548\u679c\u4e0e\u82f1\u6587\u8bed\u6599\u76f8\u8fd1\u3002\u672c\u7740\u5206\u4eab\u7684\u7cbe\u795e\u5c06\u8fd9\u4e00\u60f3\u6cd5\u4f9b\u5e7f\u5927\u7684\u4e2d\u6587\u81ea\u7136\u8bed\u8a00\u5904\u7406\u7684\u7ae5\u978b\u4e00\u8d77\u5206\u4eab\uff0c\u540c\u65f6\u5c06\u6211\u81ea\u5df1\u5199\u7684\u5c0f\u5de5\u5177\u5f00\u6e90\u51fa\u6765\u3002\n\noutput:\n\niv ue thd qd ygk yyy th gj saj gajf k ujfj yngk xe saj gajf uqt js tve vb , wjg j mh gf amd yygy ujfj yngk gd qd mh pw st bgk ga , k yygy kw e lpk xfn r pb gn sfi hko , o b uqf tk tkh ujfj yngk xe ygk yyy saj gajf yid et gf k yygy , k yygy wv yngk dn b k yygy thd qd ygk yyy th gj wycm fakgk g wh ad dbm ntg dga pwv . rp go dga pwv ge je , d tve qq pyj x mqq xtk saj gajf k , pb twf xe ygk yyy saj gajf uqt js bn tve vb , dmjr eg ww ta fqp go rhf , mh gf pb twf xe ygk yyy saj gajf xx ujfj yngk xe ygk yyy saj gajf wk qyvl b gjq qq r dr vck wy thn , bde udh pyj x mqq xtk saj gajf r v nae c ey yf tha ce lt r rj ym , pb twf xe ygk yyy saj gajf r uqt js yid yynwr wf gjq vb . uqf txg g wh k yygy ic pb iv wdt g wh pb twf lwg ty pb twf xe ygk yyy saj gajf wf nf gcftm tve qq ukd jghmt , pu cwg uqt js sh cf amd yygy ygk ou go yu ua i gj shn , x pu , cwg tfq uqf k yygy ic pb lfn wx o gg tt pb gajf dcg , lwg ty saj gajf yf tha rg gmf uqf gg tt pb gajf dcg lfn rq lkd ic pb fh cm uqt js gn amd yygy ygk ou sh rp . sg udh wv ybf r oge pyj uqf p g shn if waw yygt dd r k yygy thd qd ygk yyy th gj r ujff afffi g fhn wv ybf , m jf uqf q thd nng pgn r ih a hw ga idr bm go .\n\nLicense\n-------\n\n`wubi` is free software, under an MIT-style license. See LICENSE for details.\n\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/arcsecw/wubi", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "wubi", "package_url": "https://pypi.org/project/wubi/", "platform": "", "project_url": "https://pypi.org/project/wubi/", "project_urls": { "Homepage": "https://github.com/arcsecw/wubi" }, "release_url": "https://pypi.org/project/wubi/1.0/", "requires_dist": null, "requires_python": "", "summary": "Translate chinese chars to wubi", "version": "1.0" }, "last_serial": 3543698, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "a1fb3d289d4a9fdc618949d7db314932", "sha256": "c0edc403e0cb2f111530f72c28bd1c6c5b7ac91f32c25dbeb85d7b415f9de138" }, "downloads": -1, "filename": "wubi-0.0.1-py2.7.egg", "has_sig": false, "md5_digest": "a1fb3d289d4a9fdc618949d7db314932", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 411683, "upload_time": "2017-06-26T10:58:48", "url": "https://files.pythonhosted.org/packages/1e/25/1d0a36cfc215a82f87d361b6b61cf6ee51545a63dc4248330fd1d48a9ee6/wubi-0.0.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "9c4f85627b6fb3b3f13707e029ca1368", "sha256": "a177b470c6642c92d1e4589f6722a7ae75eb52c3f896a9efa87310e82e63092e" }, "downloads": -1, "filename": "wubi-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9c4f85627b6fb3b3f13707e029ca1368", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 409993, "upload_time": "2017-06-26T11:36:58", "url": "https://files.pythonhosted.org/packages/a6/91/75dda629a6ca89d274ad863a33f1dbe599f09a824324cdf3c451e256e911/wubi-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f96fadf4c06c8bbf993df5835faf9e44", "sha256": "4fa75cda7c1660114f37cf51b9dd76ba7162c3fd87133058650257b59851a257" }, "downloads": -1, "filename": "wubi-0.0.1.tar.gz", "has_sig": false, "md5_digest": "f96fadf4c06c8bbf993df5835faf9e44", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 408653, "upload_time": "2017-06-26T10:58:50", "url": "https://files.pythonhosted.org/packages/bf/9d/4bc18729403a8eb41dc168a3ab7e4475ba342f4953a7aa0bbc8572581817/wubi-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "437c66e950ef582a972d8a93e3c0043f", "sha256": "335eb568a2b2d20f1e64f5a2b4d0432dfd1794608a0fe29bf5f8a4d71c4a3159" }, "downloads": -1, "filename": "wubi-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "437c66e950ef582a972d8a93e3c0043f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 409992, "upload_time": "2017-06-26T12:35:16", "url": "https://files.pythonhosted.org/packages/08/2c/65c384c7f6879b4b916139e38a0c3ed8e625d5b3ebd36acde63743272b41/wubi-0.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "857af3d838852cce1ca6cd3a0a7afcad", "sha256": "1010c0d67c8525e18a7b53a9c7c3f24774e97dab2798c7ec83a7080de9072ad2" }, "downloads": -1, "filename": "wubi-0.0.2.tar.gz", "has_sig": false, "md5_digest": "857af3d838852cce1ca6cd3a0a7afcad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 408535, "upload_time": "2017-06-26T12:35:18", "url": "https://files.pythonhosted.org/packages/63/d7/564bd36048233e41b81fddd1a786a3501a87cc3047049ff70f25de7c9aa5/wubi-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "9fe850ea2be42f062afaa212eecc3f8e", "sha256": "3eaf00e1d011da734174fe517fbb0f747497cc487a659696ea8d686d132c5f9d" }, "downloads": -1, "filename": "wubi-0.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9fe850ea2be42f062afaa212eecc3f8e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 412974, "upload_time": "2017-06-26T14:46:50", "url": "https://files.pythonhosted.org/packages/4e/5d/8fb10f8fe2f4893e8f458583f675e0808991e9b95967a0cf1eb69e6066c9/wubi-0.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "81d3e7c31792f70962d5a8eebac67bd9", "sha256": "cb353fbf6a23ebe9e03b2993e5bd4c7aa313ff544ba453e4dc1b1ded0eaaaf68" }, "downloads": -1, "filename": "wubi-0.0.3.tar.gz", "has_sig": false, "md5_digest": "81d3e7c31792f70962d5a8eebac67bd9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 412171, "upload_time": "2017-06-26T14:46:53", "url": "https://files.pythonhosted.org/packages/f8/ed/885aab29a24715d38b07c9363ef3acc1fb435d0540593be3e93b622e042b/wubi-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "fe59ed24107815c979fb67e3c70109e1", "sha256": "15b843d27e57cfdc89dab7671694ad61ebd5949cd105ed4b8b7095534fdce42a" }, "downloads": -1, "filename": "wubi-0.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "fe59ed24107815c979fb67e3c70109e1", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 413242, "upload_time": "2017-06-27T01:25:39", "url": "https://files.pythonhosted.org/packages/5a/4e/1e9e2a6f2ab600b79ac6258f4780eed01aaca637070dd2f27b81ee9b0076/wubi-0.0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7cdd40c819d17df70f5132a707b31e51", "sha256": "ef5f51a34bfc815879d19b4200af51d06ad1e2e896d2c3db06c526fe663be416" }, "downloads": -1, "filename": "wubi-0.0.4.tar.gz", "has_sig": false, "md5_digest": "7cdd40c819d17df70f5132a707b31e51", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5928, "upload_time": "2017-06-27T01:25:40", "url": "https://files.pythonhosted.org/packages/d7/af/f660f0ee48d7a59c868bfeb96ddb346c85b97ee8d848c74803f654cefcd5/wubi-0.0.4.tar.gz" } ], "1.0": [ { "comment_text": "", "digests": { "md5": "22e37840adc3de01d6972b9f943897ef", "sha256": "aa740d40bc628b9b1c31885558f258bd88759e7d37acd11d13cf05d6f8a936ed" }, "downloads": -1, "filename": "wubi-1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "22e37840adc3de01d6972b9f943897ef", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 767412, "upload_time": "2018-02-02T02:36:14", "url": "https://files.pythonhosted.org/packages/fa/fd/b1d10483a096919c55f74f10a3ec5908cf217d32684e5f5dd50d6c54b168/wubi-1.0-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "22e37840adc3de01d6972b9f943897ef", "sha256": "aa740d40bc628b9b1c31885558f258bd88759e7d37acd11d13cf05d6f8a936ed" }, "downloads": -1, "filename": "wubi-1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "22e37840adc3de01d6972b9f943897ef", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 767412, "upload_time": "2018-02-02T02:36:14", "url": "https://files.pythonhosted.org/packages/fa/fd/b1d10483a096919c55f74f10a3ec5908cf217d32684e5f5dd50d6c54b168/wubi-1.0-py2.py3-none-any.whl" } ] }