{ "info": { "author": "Yu-wen Pwu", "author_email": "ywpu@cs.nctu.edu.tw", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Natural Language :: Chinese (Traditional)", "Programming Language :: Python :: 3", "Topic :: Text Processing :: Linguistic" ], "description": "CKIP Client\n-----------\n\nA Python client for the Chinese Word Segmentation System (see `ckipsvr.iis.sinica.edu.tw `_) provided by Academia Sinica Chinese Knowledge and Information Processing (CKIP) Group.\n\nInstallation\n------------\n\nSimply run tho following command:\n\n.. code-block:: sh\n\n pip install ckip-client\n\nIf ``pip`` is not available, you can also `download it manually from PyPI `_.\n\n*Note: Currently only Python 3+ is supported.*\n\nExample\n-------\n\nIn order to use the Chinese Word Segmentation System, you should register an account on `ckipsvr.iis.sinica.edu.tw `_.\nYou will get the server's IP address and port number when you finish the registration process.\n\nReplace ``CKIP_*`` with your real arguments.\n\n.. code-block:: python\n\n from ckipclient import CKIPClient\n\n sample_text = '\u7b2c\u4e8c\u5c46\u5167\u5730\u6416\u6efe\u97f3\u6a02\u796d\u5c07\u5728 9 \u6708 24 \u65e5\u767b\u5834\uff01\u4eca\u5e74\u5171\u6709\u4e94\u5341\u4e94\u7d44\u7368\u7acb\u6a02\u5718'\\\n '\u53c3\u8207\u6f14\u51fa\uff0c\u5305\u542b\u66fe\u7372\u5f97\u91d1\u66f2\u734e\u7684\u300c\u8212\u7c73\u6069\u300d\u3001\u300c\u6ec5\u706b\u5668\u300d\u7b49\uff0c\u9663\u5bb9\u5341\u5206\u5805\u5f37\u3002'\n\n ckip = CKIPClient(CKIP_IP, CKIP_PORT, CKIP_USERNAME, CKIP_PASSWORD)\n sample_results = ckip.segment(sample_text)\n\n for sentence in sample_results:\n print('\uff0f'.join(' '.join(word) for word in sentence))\n\nThe code above will output:\n\n.. code-block::\n\n \u7b2c\u4e8c DET\uff0f\u5c46 M\uff0f\u5167\u5730 N\uff0f\u6416\u6efe N\uff0f\u97f3\u6a02 N\uff0f\u796d Vt\uff0f\u5c07 ADV\uff0f\u5728 P\uff0f9 DET\uff0f\u6708 N\uff0f24 DET\uff0f\u65e5 M\uff0f\u767b\u5834 Vi\uff0f\uff01 EXCLAMATIONCATEGORY\n \u4eca\u5e74 N\uff0f\u5171\u6709 Vt\uff0f\u4e94\u5341\u4e94 DET\uff0f\u7d44 M\uff0f\u7368\u7acb Vi\uff0f\u6a02\u5718 N\uff0f\u53c3\u8207 Vt\uff0f\u6f14\u51fa N\uff0f\uff0c COMMACATEGORY\n \u5305\u542b Vt\uff0f\u66fe ADV\uff0f\u7372\u5f97 Vt\uff0f\u91d1\u66f2\u734e N\uff0f\u7684 T\uff0f\u300c PARENTHESISCATEGORY\uff0f\u8212\u7c73\u6069 N\uff0f\u300d PARENTHESISCATEGORY\uff0f\u3001 PAUSECATEGORY\uff0f\u300c PARENTHESISCATEGORY\uff0f\u6ec5\u706b\u5668 N\uff0f\u300d PARENTHESISCATEGORY\uff0f\u7b49 POST\uff0f\uff0c COMMACATEGORY\n \u9663\u5bb9 N\uff0f\u5341\u5206 ADV\uff0f\u5805\u5f37 Vi\uff0f\u3002 PERIODCATEGORY\n\nFor more details, please refer to `the documentation `_.\n", "description_content_type": null, "docs_url": null, "download_url": "https://pypi.python.org/pypi/ckip-client", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/yuwen41200/ckip-client", "keywords": "chinese word segmentation ckip client nlp linguistics", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "ckip-client", "package_url": "https://pypi.org/project/ckip-client/", "platform": "any", "project_url": "https://pypi.org/project/ckip-client/", "project_urls": { "Download": "https://pypi.python.org/pypi/ckip-client", "Homepage": "https://github.com/yuwen41200/ckip-client" }, "release_url": "https://pypi.org/project/ckip-client/0.2.0.post1/", "requires_dist": null, "requires_python": "", "summary": "A Python Client for CKIP Chinese Word Segmentation System", "version": "0.2.0.post1" }, "last_serial": 3008336, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "f4c9cd490c8ec64a5b95ccaa05513e13", "sha256": "9855b429c9ea9c78740641ac15e58cc887a554fc1a516e290c1762bd9fe98974" }, "downloads": -1, "filename": "ckip-client-0.1.0.tar.gz", "has_sig": false, "md5_digest": "f4c9cd490c8ec64a5b95ccaa05513e13", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3680, "upload_time": "2016-10-06T13:00:01", "url": "https://files.pythonhosted.org/packages/e4/03/7fc93c6d40ee2244e650de9ae14d8de76ae73f2df909dfb92486351a456b/ckip-client-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "7bbdad40f49d36aa77cd3981ae4c46bc", "sha256": "8985cf6eb19545d8ed76aec9487c25b9b90e43c52c06a5ec240b6764ac05ad8d" }, "downloads": -1, "filename": "ckip_client-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "7bbdad40f49d36aa77cd3981ae4c46bc", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 7036, "upload_time": "2016-10-06T19:26:20", "url": "https://files.pythonhosted.org/packages/c2/29/7f31deacca6f8d6a4a2c5b4b4cf015e7caec4f08f482f63410d14e107c7c/ckip_client-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ab1ab401e968100d5cc2f8dd35aaffb3", "sha256": "b77d091e78eae53fac4050dc1f91ec8bb016a09971a1be0dd2923a9d7f92371d" }, "downloads": -1, "filename": "ckip-client-0.1.1.tar.gz", "has_sig": false, "md5_digest": "ab1ab401e968100d5cc2f8dd35aaffb3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3919, "upload_time": "2016-10-06T18:52:47", "url": "https://files.pythonhosted.org/packages/a2/f2/89c7a42a361f787230f3f86c037732804a2c704ad7bea2cbb1865d7608a5/ckip-client-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "4eacb6eed705a4661d391326982d8afb", "sha256": "249cc00ef0a2ecedc477c66a7aaa3a693bba8d273e87a2b5d3db64e76a6b7f83" }, "downloads": -1, "filename": "ckip_client-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "4eacb6eed705a4661d391326982d8afb", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 7148, "upload_time": "2016-10-08T14:11:13", "url": "https://files.pythonhosted.org/packages/3c/88/ff2ff02365d91221c287abed6ab528358d9dc38f543e691a087eb094a5da/ckip_client-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3815b15e147442fef550afd574619355", "sha256": "77852b864672f38577892090d3cc00b6b01cf9cf5d5ac6ccc297b32fbb34b22e" }, "downloads": -1, "filename": "ckip-client-0.1.2.tar.gz", "has_sig": false, "md5_digest": "3815b15e147442fef550afd574619355", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4021, "upload_time": "2016-10-08T14:10:57", "url": "https://files.pythonhosted.org/packages/07/73/ff1c1802de1e03f5f5014e1df03fd1100f0221d2600585c05478f09cb7e9/ckip-client-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "8c2f69f974ee8d87c4ac60e16d43fa71", "sha256": "6cfd08699e0df88a81f979b6e57c3ce33e2b0d722c8028bc538475fcf11a1e42" }, "downloads": -1, "filename": "ckip_client-0.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "8c2f69f974ee8d87c4ac60e16d43fa71", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 7152, "upload_time": "2017-02-27T22:03:23", "url": "https://files.pythonhosted.org/packages/49/5b/e29757428b8f170d0618a573375484740578234dd2e6bfbbac5b478e096b/ckip_client-0.1.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d10827d0568c2599d413989744da904f", "sha256": "bcfb30e1193edae70018b7328f9f090a839169c81b3a3f849e7e61ed3ce22aa3" }, "downloads": -1, "filename": "ckip-client-0.1.3.tar.gz", "has_sig": false, "md5_digest": "d10827d0568c2599d413989744da904f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4006, "upload_time": "2017-02-27T22:03:21", "url": "https://files.pythonhosted.org/packages/fd/fb/dcfd3b7b41324d29b9c9102a0657e1a29e451235685591cc9d29a8604876/ckip-client-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "0615a8da99388f56288a57a6a75991af", "sha256": "1d7a7fe40ed0c15d352eeacbf9aec1d84239b9ea2a162a31f7fd0934f0e6e374" }, "downloads": -1, "filename": "ckip_client-0.1.4-py3-none-any.whl", "has_sig": false, "md5_digest": "0615a8da99388f56288a57a6a75991af", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 7256, "upload_time": "2017-04-02T12:52:34", "url": "https://files.pythonhosted.org/packages/f2/88/b24cbde101b24cb29ebc373e62f6b4eff72b580ccfed6f03e6ea442592e4/ckip_client-0.1.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a0ee6c1f4f73ae7aaad7c1a97ceb8868", "sha256": "32610d786931a94a6d2d41bdbca125d0c55bb9c86b80e42cbe63532bec997b6b" }, "downloads": -1, "filename": "ckip-client-0.1.4.tar.gz", "has_sig": false, "md5_digest": "a0ee6c1f4f73ae7aaad7c1a97ceb8868", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4131, "upload_time": "2017-04-02T12:52:30", "url": "https://files.pythonhosted.org/packages/13/42/4bbaea55e81987c8800f392ed3ec328b354bc1cfc24ee15bdd7471add668/ckip-client-0.1.4.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "aadd7bfe39a9bd8fdf5d391a19e72c10", "sha256": "c20f54d0983a7148f3683b8706d51f3eceb588e41f42f8f0fb3627ceb65ba5a2" }, "downloads": -1, "filename": "ckip_client-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "aadd7bfe39a9bd8fdf5d391a19e72c10", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 9232, "upload_time": "2017-07-08T12:12:50", "url": "https://files.pythonhosted.org/packages/67/18/77a2b60f3d80f4c45cdc97be03636905fdb825157ddc73781f74c584edeb/ckip_client-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "92d9c4f69e6e55d63b1839a672af32c7", "sha256": "d6c7e15b07dad3aa5fb9a19546956bdd53f2718afdba4573931f25869a5a059f" }, "downloads": -1, "filename": "ckip-client-0.2.0.tar.gz", "has_sig": false, "md5_digest": "92d9c4f69e6e55d63b1839a672af32c7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4222, "upload_time": "2017-07-08T12:12:48", "url": "https://files.pythonhosted.org/packages/d8/38/1908bfb142e36bc780ca1267683bdd3c993990ff55eb15016b9c88c35555/ckip-client-0.2.0.tar.gz" } ], "0.2.0.post1": [ { "comment_text": "", "digests": { "md5": "c839d9832adeba597f49048f1e63aa23", "sha256": "f379e323926e58e3f79ef56b68d8be29793225a5caf9dd171da0851a32780824" }, "downloads": -1, "filename": "ckip_client-0.2.0.post1-py3-none-any.whl", "has_sig": false, "md5_digest": "c839d9832adeba597f49048f1e63aa23", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 9310, "upload_time": "2017-07-08T13:14:49", "url": "https://files.pythonhosted.org/packages/28/2c/f59c3345f9d4ed9289de78746c7a4c120badb764342c3692556ebdd539a8/ckip_client-0.2.0.post1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d7f2a59711e42b7e9a2c6d40d70e5bba", "sha256": "452a9e87797cdb0662f7bf0a50b0fd56d85e912ce7471a9d84e35b39bde484c5" }, "downloads": -1, "filename": "ckip-client-0.2.0.post1.tar.gz", "has_sig": false, "md5_digest": "d7f2a59711e42b7e9a2c6d40d70e5bba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4228, "upload_time": "2017-07-08T13:14:47", "url": "https://files.pythonhosted.org/packages/2c/ae/e1433001ff89114143c654aae65b1df2f54fae6c54389a7539e4f7d1ef85/ckip-client-0.2.0.post1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c839d9832adeba597f49048f1e63aa23", "sha256": "f379e323926e58e3f79ef56b68d8be29793225a5caf9dd171da0851a32780824" }, "downloads": -1, "filename": "ckip_client-0.2.0.post1-py3-none-any.whl", "has_sig": false, "md5_digest": "c839d9832adeba597f49048f1e63aa23", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 9310, "upload_time": "2017-07-08T13:14:49", "url": "https://files.pythonhosted.org/packages/28/2c/f59c3345f9d4ed9289de78746c7a4c120badb764342c3692556ebdd539a8/ckip_client-0.2.0.post1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d7f2a59711e42b7e9a2c6d40d70e5bba", "sha256": "452a9e87797cdb0662f7bf0a50b0fd56d85e912ce7471a9d84e35b39bde484c5" }, "downloads": -1, "filename": "ckip-client-0.2.0.post1.tar.gz", "has_sig": false, "md5_digest": "d7f2a59711e42b7e9a2c6d40d70e5bba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4228, "upload_time": "2017-07-08T13:14:47", "url": "https://files.pythonhosted.org/packages/2c/ae/e1433001ff89114143c654aae65b1df2f54fae6c54389a7539e4f7d1ef85/ckip-client-0.2.0.post1.tar.gz" } ] }