=======
PyNLPIR
=======
.. image:: https://badge.fury.io/py/pynlpir.svg
:target: https://pypi.org/project/pynlpir
.. image:: https://github.com/tsroten/pynlpir/actions/workflows/ci.yml/badge.svg
:target: https://github.com/tsroten/pynlpir/actions/workflows/ci.yml
PyNLPIR is a Python wrapper around the
`NLPIR/ICTCLAS Chinese segmentation software <http://www.nlpir.org/wordpress/>`_.
* Documentation: https://tsroten.github.io/pynlpir/
* GitHub: https://github.com/tsroten/pynlpir
* Support: https://github.com/tsroten/pynlpir/issues
* Free software: `MIT license <http://opensource.org/licenses/MIT>`_
About
-----
Easily segment text using NLPIR, one of the most widely-regarded Chinese text
analyzers:
.. code:: python
import pynlpir
pynlpir.open()
s = '欢迎科研人员、技术工程师、企事业单位与个人参与NLPIR平台的建设工作。'
pynlpir.segment(s)
[('欢迎', 'verb'), ('科研', 'noun'), ('人员', 'noun'), ('、', 'punctuation mark'), ('技术', 'noun'), ('工程师', 'noun'), ('、', 'punctuation mark'), ('企事业', 'noun'), ('单位', 'noun'), ('与', 'conjunction'), ('个人', 'noun'), ('参与', 'verb'), ('NLPIR', 'noun'), ('平台', 'noun'), ('的', 'particle'), ('建设', 'verb'), ('工作', 'verb'), ('。', 'punctuation mark')]
Features
--------
* Helper functions for common use cases
* English/Chinese part of speech mapping
* Support for UTF-8, GBK, and BIG5 encoded strings (and unicode of course!)
* Access to NLPIR's C functions via ``ctypes``
* Includes a copy of NLPIR
* Supports macOS (Intel), Linux, and Windows
Getting Started
---------------
* `Install PyNLPIR <https://tsroten.github.io/pynlpir/installation.html>`_
* ``pip install pynlpir`` to install PyNLPIR
* ``pynlpir update`` to download the latest license
* Read `PyNLPIR's tutorial <https://tsroten.github.io/pynlpir/tutorial.html>`_
* Learn from the `API documentation <https://tsroten.github.io/pynlpir/api.html>`_
* `Contribute <https://tsroten.github.io/pynlpir/contributing.html>`_ documentation, code, or feedback
Raw data
{
"_id": null,
"home_page": null,
"name": "PyNLPIR",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "chinese, ictclas, nlp, nlpir, pynlpir, segmentation",
"author": "Thomas Roten",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/9b/d5/eb0308891aeb05c5859afd46d52c6f67a84ac2194dc5b2ce50b0f4124065/pynlpir-0.6.1.tar.gz",
"platform": null,
"description": "=======\nPyNLPIR\n=======\n\n.. image:: https://badge.fury.io/py/pynlpir.svg\n :target: https://pypi.org/project/pynlpir\n\n.. image:: https://github.com/tsroten/pynlpir/actions/workflows/ci.yml/badge.svg\n :target: https://github.com/tsroten/pynlpir/actions/workflows/ci.yml\n\nPyNLPIR is a Python wrapper around the\n`NLPIR/ICTCLAS Chinese segmentation software <http://www.nlpir.org/wordpress/>`_.\n\n* Documentation: https://tsroten.github.io/pynlpir/\n* GitHub: https://github.com/tsroten/pynlpir\n* Support: https://github.com/tsroten/pynlpir/issues\n* Free software: `MIT license <http://opensource.org/licenses/MIT>`_\n\nAbout\n-----\n\nEasily segment text using NLPIR, one of the most widely-regarded Chinese text\nanalyzers:\n\n.. code:: python\n\n import pynlpir\n pynlpir.open()\n\n s = '\u6b22\u8fce\u79d1\u7814\u4eba\u5458\u3001\u6280\u672f\u5de5\u7a0b\u5e08\u3001\u4f01\u4e8b\u4e1a\u5355\u4f4d\u4e0e\u4e2a\u4eba\u53c2\u4e0eNLPIR\u5e73\u53f0\u7684\u5efa\u8bbe\u5de5\u4f5c\u3002'\n pynlpir.segment(s)\n\n [('\u6b22\u8fce', 'verb'), ('\u79d1\u7814', 'noun'), ('\u4eba\u5458', 'noun'), ('\u3001', 'punctuation mark'), ('\u6280\u672f', 'noun'), ('\u5de5\u7a0b\u5e08', 'noun'), ('\u3001', 'punctuation mark'), ('\u4f01\u4e8b\u4e1a', 'noun'), ('\u5355\u4f4d', 'noun'), ('\u4e0e', 'conjunction'), ('\u4e2a\u4eba', 'noun'), ('\u53c2\u4e0e', 'verb'), ('NLPIR', 'noun'), ('\u5e73\u53f0', 'noun'), ('\u7684', 'particle'), ('\u5efa\u8bbe', 'verb'), ('\u5de5\u4f5c', 'verb'), ('\u3002', 'punctuation mark')]\n\nFeatures\n--------\n\n* Helper functions for common use cases\n* English/Chinese part of speech mapping\n* Support for UTF-8, GBK, and BIG5 encoded strings (and unicode of course!)\n* Access to NLPIR's C functions via ``ctypes``\n* Includes a copy of NLPIR\n* Supports macOS (Intel), Linux, and Windows\n\nGetting Started\n---------------\n\n* `Install PyNLPIR <https://tsroten.github.io/pynlpir/installation.html>`_\n\n * ``pip install pynlpir`` to install PyNLPIR\n * ``pynlpir update`` to download the latest license\n\n* Read `PyNLPIR's tutorial <https://tsroten.github.io/pynlpir/tutorial.html>`_\n* Learn from the `API documentation <https://tsroten.github.io/pynlpir/api.html>`_\n* `Contribute <https://tsroten.github.io/pynlpir/contributing.html>`_ documentation, code, or feedback",
"bugtrack_url": null,
"license": "MIT",
"summary": "A Python wrapper around the NLPIR/ICTCLAS Chinese segmentation software.",
"version": "0.6.1",
"project_urls": {
"Changes": "https://tsroten.github.io/pynlpir/history.html",
"Documentation": "https://tsroten.github.io/pynlpir",
"Issue Tracker": "https://github.com/tsroten/pynlpir/issues",
"Source Code": "https://github.com/tsroten/pynlpir"
},
"split_keywords": [
"chinese",
" ictclas",
" nlp",
" nlpir",
" pynlpir",
" segmentation"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "c00607c0d94e8328423e67d6c314b8937ddcb83afceda614557ea6b016a590e7",
"md5": "0db87b3ce2107d8b77f3861e35774b5c",
"sha256": "6350ec8d5bd5d105ca6d45b81beb47af1c7786111db9e4c88c5c39560bc407a9"
},
"downloads": -1,
"filename": "pynlpir-0.6.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0db87b3ce2107d8b77f3861e35774b5c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 13099989,
"upload_time": "2024-11-20T00:45:15",
"upload_time_iso_8601": "2024-11-20T00:45:15.085534Z",
"url": "https://files.pythonhosted.org/packages/c0/06/07c0d94e8328423e67d6c314b8937ddcb83afceda614557ea6b016a590e7/pynlpir-0.6.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "9bd5eb0308891aeb05c5859afd46d52c6f67a84ac2194dc5b2ce50b0f4124065",
"md5": "b0d614b3b2723161cfa48253ca5551c4",
"sha256": "8cb147d8e16885b586ce1b5336afcf592ccea134027a903e16c8d9a343446c75"
},
"downloads": -1,
"filename": "pynlpir-0.6.1.tar.gz",
"has_sig": false,
"md5_digest": "b0d614b3b2723161cfa48253ca5551c4",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 13029405,
"upload_time": "2024-11-20T00:45:10",
"upload_time_iso_8601": "2024-11-20T00:45:10.556320Z",
"url": "https://files.pythonhosted.org/packages/9b/d5/eb0308891aeb05c5859afd46d52c6f67a84ac2194dc5b2ce50b0f4124065/pynlpir-0.6.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-20 00:45:10",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "tsroten",
"github_project": "pynlpir",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "pynlpir"
}