{ "info": { "author": "Yijia Liu, Zixiang Xu, Yang Liu", "author_email": "ltp-cloud@googlegroups.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Scientific/Engineering", "Topic :: Scientific/Engineering :: Information Analysis", "Topic :: Software Development", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Text Processing :: Linguistic" ], "description": "\ufeff# pyltp\n\n[![PyPI Status](https://badge.fury.io/py/pyltp.svg)](https://badge.fury.io/py/pyltp)\n[![Readthedocs](https://readthedocs.org/projects/pyltp/badge/?version=latest)](http://pyltp.readthedocs.io/)\n[![Build Status](https://travis-ci.org/HIT-SCIR/pyltp.svg?branch=master)](https://travis-ci.org/HIT-SCIR/pyltp)\n[![Build status](https://ci.appveyor.com/api/projects/status/kp2kjujo4amunyvr/branch/master?svg=true)](https://ci.appveyor.com/project/Oneplus/pyltp/branch/master)\n[![PyPI Downloads](https://img.shields.io/pypi/dm/pyltp.svg)](https://pypi.python.org/pypi/pyltp)\n\npyltp \u662f [\u8bed\u8a00\u6280\u672f\u5e73\u53f0\uff08Language Technology Platform, LTP\uff09](https://github.com/HIT-SCIR/ltp)\u7684 Python \u5c01\u88c5\u3002\n\n\u5728\u4f7f\u7528 pyltp \u4e4b\u524d\uff0c\u60a8\u9700\u8981\u7b80\u8981\u4e86\u89e3 [\u8bed\u8a00\u6280\u672f\u5e73\u53f0\uff08LTP\uff09](http://ltp.readthedocs.org/zh_CN/latest/) \u80fd\u5426\u5e2e\u52a9\u60a8\u89e3\u51b3\u95ee\u9898\u3002\n\n## \u4e00\u4e2a\u7b80\u5355\u7684\u4f8b\u5b50\n\n\u4e0b\u9762\u662f\u4e00\u4e2a\u4f7f\u7528 pyltp \u8fdb\u884c\u5206\u8bcd\u7684\u4f8b\u5b50\n\n```python\n# -*- coding: utf-8 -*-\nfrom pyltp import Segmentor\nsegmentor = Segmentor()\nsegmentor.load(\"/path/to/your/cws/model\")\nwords = segmentor.segment(\"\u5143\u82b3\u4f60\u600e\u4e48\u770b\")\nprint \"|\".join(words)\nsegmentor.release()\n```\n\u9664\u4e86\u5206\u8bcd\u4e4b\u5916\uff0cpyltp \u8fd8\u63d0\u4f9b\u8bcd\u6027\u6807\u6ce8\u3001\u547d\u540d\u5b9e\u4f53\u8bc6\u522b\u3001\u4f9d\u5b58\u53e5\u6cd5\u5206\u6790\u3001\u8bed\u4e49\u89d2\u8272\u6807\u6ce8\u7b49\u529f\u80fd\u3002\n\n\u8be6\u7ec6\u4f7f\u7528\u65b9\u6cd5\u8bf7\u53c2\u8003 [\u5728\u7ebf\u6587\u6863](http://pyltp.readthedocs.io/)\u3002\n\n## \u5b89\u88c5\n\n* \u7b2c\u4e00\u6b65\uff0c\u5b89\u88c5 pyltp\n\n\t\u4f7f\u7528 pip \u5b89\u88c5\n\n\t```\n\t$ pip install pyltp\n\t```\n\t\u6216\u4ece\u6e90\u4ee3\u7801\u5b89\u88c5\n\n\t```\n\t$ git clone https://github.com/HIT-SCIR/pyltp\n\t$ git submodule init\n\t$ git submodule update\n\t$ python setup.py install # Mac\u7cfb\u7edf\u51fa\u73b0\u7248\u672c\u95ee\u9898\u4f7f\u7528 MACOSX_DEPLOYMENT_TARGET=10.7 python setup.py install\n\t```\n\n* \u7b2c\u4e8c\u6b65\uff0c\u4e0b\u8f7d\u6a21\u578b\u6587\u4ef6\n\n\t[\u4e03\u725b\u4e91](http://ltp.ai/download.html)\uff0c\u5f53\u524d\u6a21\u578b\u7248\u672c 3.4.0\n\n## \u7248\u672c\u5bf9\u5e94\n\n* pyltp \u7248\u672c\uff1a0.2.0\n* LTP \u7248\u672c\uff1a3.4.0\n* \u6a21\u578b\u7248\u672c\uff1a3.4.0\n\n## \u4f5c\u8005\n\n* \u5f90\u6893\u7fd4 << zxxu@ir.hit.edu.cn >> 2015-01-20 \u89e3\u51b3\u8de8\u5e73\u53f0\u8fd0\u884c\u95ee\u9898\n* \u5218\u4e00\u4f73 << yjliu@ir.hit.edu.cn >> 2014-06-12 \u91cd\u7ec4\u9879\u76ee\n* HuangFJ << biohfj@gmail.com >> \u672c\u9879\u76ee\u6700\u521d\u4f5c\u8005\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/HIT-SCIR/pyltp", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "pyltp", "package_url": "https://pypi.org/project/pyltp/", "platform": "", "project_url": "https://pypi.org/project/pyltp/", "project_urls": { "Homepage": "https://github.com/HIT-SCIR/pyltp" }, "release_url": "https://pypi.org/project/pyltp/0.2.1/", "requires_dist": null, "requires_python": "", "summary": "pyltp: the python extension for LTP", "version": "0.2.1" }, "last_serial": 3436231, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "d3b2da50e52a1ea9deeda14880c3d827", "sha256": "eac53b4be5a49ea2d6739747f836ac10e698f6e46c2b7ec1819928598fd7dac7" }, "downloads": -1, "filename": "pyltp-0.1.1.tar.gz", "has_sig": false, "md5_digest": "d3b2da50e52a1ea9deeda14880c3d827", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4895247, "upload_time": "2014-12-20T01:53:44", "url": "https://files.pythonhosted.org/packages/76/9a/23bf1b74ff0e75adaa0b47de2621c325a4c34e172fd6949f12b5f36ed90e/pyltp-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "b80d0dbf20726c940b6b61656088d730", "sha256": "2bd4e4dcca7899f465630e63d9a78c434a2766a018d7a3d06a9801461aeed708" }, "downloads": -1, "filename": "pyltp-0.1.2.tar.gz", "has_sig": false, "md5_digest": "b80d0dbf20726c940b6b61656088d730", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2788462, "upload_time": "2014-12-22T04:56:11", "url": "https://files.pythonhosted.org/packages/b0/72/2673699bab5b437b8a623887ec0b92dd813d3eaddaebd0427128dfb2109a/pyltp-0.1.2.tar.gz" }, { "comment_text": "", "digests": { "md5": "5a3c5def72fdd53392d85d8631edf227", "sha256": "3ad8a2e93213325a85dc1036becb7e968163bf709784ea4ce63688d0a1fe6c15" }, "downloads": -1, "filename": "pyltp-0.1.2.win-amd64-py2.7.exe", "has_sig": false, "md5_digest": "5a3c5def72fdd53392d85d8631edf227", "packagetype": "bdist_wininst", "python_version": "2.7", "requires_python": null, "size": 957853, "upload_time": "2014-12-22T03:29:47", "url": "https://files.pythonhosted.org/packages/d1/21/9e49309113a943a188943dcc2fc702b0e9e84ccaa82f06a12aba6d30cca0/pyltp-0.1.2.win-amd64-py2.7.exe" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "5233d60688f54ef9d713f6d94d7cbbbd", "sha256": "acd10a3071691998439bb183e12ab91192a2220c7f8251320767fbb4e1a64bd0" }, "downloads": -1, "filename": "pyltp-0.1.3.tar.gz", "has_sig": false, "md5_digest": "5233d60688f54ef9d713f6d94d7cbbbd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2788731, "upload_time": "2014-12-24T04:39:07", "url": "https://files.pythonhosted.org/packages/5d/25/cad476172a6e627c1bb3a74695e6ff55120f67d1afc3bb5f2d5f984223d0/pyltp-0.1.3.tar.gz" }, { "comment_text": "", "digests": { "md5": "854fd40c4e301ee0848a026eca86a13e", "sha256": "2fedd32696eb0b7d20b579d870ab218f92e6cf334725ada92399a8403f822e3e" }, "downloads": -1, "filename": "pyltp-0.1.3.win-amd64-py2.7.exe", "has_sig": false, "md5_digest": "854fd40c4e301ee0848a026eca86a13e", "packagetype": "bdist_wininst", "python_version": "2.7", "requires_python": null, "size": 958065, "upload_time": "2014-12-24T04:45:54", "url": "https://files.pythonhosted.org/packages/32/af/75a9631ad2fdb5dd344a13eb549e2913ea5cdf23243123fb4539da6e5cd1/pyltp-0.1.3.win-amd64-py2.7.exe" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "dad560d9dfe929c898a62efaf46a40c9", "sha256": "3c556fb9f2798713a2fcc5e53a7ecb1db641433498197aeee18f9cc9db1f00a9" }, "downloads": -1, "filename": "pyltp-0.1.4.tar.gz", "has_sig": false, "md5_digest": "dad560d9dfe929c898a62efaf46a40c9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2789432, "upload_time": "2015-01-20T05:39:14", "url": "https://files.pythonhosted.org/packages/b9/89/be200691286995ddc3d36fbb7bcf4a64eccc30d7ccdb4de9f75ae12d0649/pyltp-0.1.4.tar.gz" }, { "comment_text": "", "digests": { "md5": "dffc0b9ff5e0a281912ed95d37af0643", "sha256": "e05cba0dafd523790e847aa1890596e287180f77f88da61830b06a2bd222c0ac" }, "downloads": -1, "filename": "pyltp-0.1.4.win-amd64-py2.7.exe", "has_sig": false, "md5_digest": "dffc0b9ff5e0a281912ed95d37af0643", "packagetype": "bdist_wininst", "python_version": "2.7", "requires_python": null, "size": 957987, "upload_time": "2015-01-20T05:32:57", "url": "https://files.pythonhosted.org/packages/d0/4a/45fcacdedf0a19506bdf8d0746b4339145b0eae15df967dda8da6d6f073b/pyltp-0.1.4.win-amd64-py2.7.exe" }, { "comment_text": "", "digests": { "md5": "6a0b8c8c5f9ec36fabd9fe726490610a", "sha256": "c8960c1c8d6d78e7ec306835584ce087190a476caf7087afef2bb431b6ddedf6" }, "downloads": -1, "filename": "pyltp-0.1.4.win-amd64-py3.4.exe", "has_sig": false, "md5_digest": "6a0b8c8c5f9ec36fabd9fe726490610a", "packagetype": "bdist_wininst", "python_version": "3.4", "requires_python": null, "size": 906085, "upload_time": "2015-01-20T05:33:28", "url": "https://files.pythonhosted.org/packages/d7/0f/75c826e27b9de8794e795b674c01b7a71bbb1ea7c45841fee713b0c32583/pyltp-0.1.4.win-amd64-py3.4.exe" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "7bb87f4c32b59e500d5562fcee169754", "sha256": "92f0a20ac7a91d12474f58fceabff52bdcc78ea70a79006e68d0b2ffe3733ced" }, "downloads": -1, "filename": "pyltp-0.1.5.tar.gz", "has_sig": false, "md5_digest": "7bb87f4c32b59e500d5562fcee169754", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2789749, "upload_time": "2015-03-13T10:58:12", "url": "https://files.pythonhosted.org/packages/cf/69/2510d9c3a4712c8e1a5bec6528f6ce4422482edf1544cbe2b6a762e3a35c/pyltp-0.1.5.tar.gz" }, { "comment_text": "", "digests": { "md5": "bbb3ec6821a196f8f29614ef691c618c", "sha256": "1b4c08cd16c68ac64a94d343344a1933b29bab17019088bf5df80826bd89f36b" }, "downloads": -1, "filename": "pyltp-0.1.5.win-amd64-py2.7.exe", "has_sig": false, "md5_digest": "bbb3ec6821a196f8f29614ef691c618c", "packagetype": "bdist_wininst", "python_version": "2.7", "requires_python": null, "size": 969612, "upload_time": "2015-03-14T02:22:01", "url": "https://files.pythonhosted.org/packages/c9/13/d5b2981c9e7f83b8ca524bde801c0a5eb5934cad5d9a5141688ab8cb97d0/pyltp-0.1.5.win-amd64-py2.7.exe" }, { "comment_text": "", "digests": { "md5": "1cbae8bff73459a963532cc4c27b22e0", "sha256": "76de2b1965541b6100f33899a3e56736551042477e7be047cecf9b15a6132d95" }, "downloads": -1, "filename": "pyltp-0.1.5.win-amd64-py3.4.exe", "has_sig": false, "md5_digest": "1cbae8bff73459a963532cc4c27b22e0", "packagetype": "bdist_wininst", "python_version": "3.4", "requires_python": null, "size": 916058, "upload_time": "2015-03-14T02:26:35", "url": "https://files.pythonhosted.org/packages/f3/c6/82f23f4d31cba887701e66e1e523c83a7889efe325359feb5fc9c927a6d4/pyltp-0.1.5.win-amd64-py3.4.exe" } ], "0.1.6": [], "0.1.7": [], "0.1.8": [ { "comment_text": "", "digests": { "md5": "570ff7689a3804d2b471becf302d6e0e", "sha256": "2121ec7558c6497210f2ad5be7fc8135421b7a3d7dca9a6f8dfcca62698b7b5c" }, "downloads": -1, "filename": "pyltp-0.1.8.tar.gz", "has_sig": false, "md5_digest": "570ff7689a3804d2b471becf302d6e0e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3418757, "upload_time": "2015-05-24T02:57:53", "url": "https://files.pythonhosted.org/packages/5b/d3/bd7122317abd9c6f952c35ae8086f4644422888602e231a4e164f14cb84f/pyltp-0.1.8.tar.gz" }, { "comment_text": "", "digests": { "md5": "68190fd981bf6ef1eb8c58fdb9c49fcf", "sha256": "364c64347d06b4081647389768682d432d95aac6461165d99fa158c6cec252b6" }, "downloads": -1, "filename": "pyltp-0.1.8.win-amd64-py2.7.exe", "has_sig": false, "md5_digest": "68190fd981bf6ef1eb8c58fdb9c49fcf", "packagetype": "bdist_wininst", "python_version": "2.7", "requires_python": null, "size": 985065, "upload_time": "2015-05-24T05:08:33", "url": "https://files.pythonhosted.org/packages/c5/e3/c11d5db3914ec89bc7051d6d84453cfac6f211c6992fb694de3986308808/pyltp-0.1.8.win-amd64-py2.7.exe" } ], "0.1.9.1": [ { "comment_text": "", "digests": { "md5": "62f03c6be63ef20f46cb1158926f6c0a", "sha256": "ecc906c36c056d0b9f704410aef4f158515551ef670be8215a9eb9b08bd77bb2" }, "downloads": -1, "filename": "pyltp-0.1.9.1-py2.7-macosx-10.11-x86_64.egg", "has_sig": false, "md5_digest": "62f03c6be63ef20f46cb1158926f6c0a", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 958368, "upload_time": "2016-05-12T06:19:43", "url": "https://files.pythonhosted.org/packages/19/b2/e6cc5cdc3ea3fc153e6f086d2b65dfdf4f34546c5254e38ab89ac7b83c54/pyltp-0.1.9.1-py2.7-macosx-10.11-x86_64.egg" }, { "comment_text": "", "digests": { "md5": "a8b6d60e9033766d9ea848d91415aba3", "sha256": "840af4208297986326d21b3f9ce9c6b7343c9a922ef0af8d7b6a48cb8708caae" }, "downloads": -1, "filename": "pyltp-0.1.9.1.tar.gz", "has_sig": false, "md5_digest": "a8b6d60e9033766d9ea848d91415aba3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3315093, "upload_time": "2016-05-12T06:16:43", "url": "https://files.pythonhosted.org/packages/d2/88/743b7e1cda9c396761b8bc40186dd8490f207ceb8e684212d4919e78ffd2/pyltp-0.1.9.1.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "8301eb468ab95c34a6e3750ec2a7e9ce", "sha256": "58e200cc11cb26a081a2804f3c80ef993656ed0f5585eda823db54fbd43309a6" }, "downloads": -1, "filename": "pyltp-0.2.1.tar.gz", "has_sig": false, "md5_digest": "8301eb468ab95c34a6e3750ec2a7e9ce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5295104, "upload_time": "2017-12-22T05:26:02", "url": "https://files.pythonhosted.org/packages/aa/72/2d88c54618cf4d8916832950374a6f265e12289fa9870aeb340800a28a62/pyltp-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8301eb468ab95c34a6e3750ec2a7e9ce", "sha256": "58e200cc11cb26a081a2804f3c80ef993656ed0f5585eda823db54fbd43309a6" }, "downloads": -1, "filename": "pyltp-0.2.1.tar.gz", "has_sig": false, "md5_digest": "8301eb468ab95c34a6e3750ec2a7e9ce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5295104, "upload_time": "2017-12-22T05:26:02", "url": "https://files.pythonhosted.org/packages/aa/72/2d88c54618cf4d8916832950374a6f265e12289fa9870aeb340800a28a62/pyltp-0.2.1.tar.gz" } ] }