3 files were added to this release more than 14 days after its initial publication. Inspect the release files before installing.
pyltp
pyltp 是 语言技术平台(Language Technology Platform, LTP)的 Python 封装。
在使用 pyltp 之前,您需要简要了解 语言技术平台(LTP) 能否帮助您解决问题。
一个简单的例子
下面是一个使用 pyltp 进行分词的例子
# -*- coding: utf-8 -*-
from pyltp import Segmentor
segmentor = Segmentor()
segmentor.load("/path/to/your/cws/model")
words = segmentor.segment("元芳你怎么看")
print "|".join(words)
segmentor.release()
除了分词之外,pyltp 还提供词性标注、命名实体识别、依存句法分析、语义角色标注等功能。
详细使用方法请参考 在线文档。
安装
-
第一步,安装 pyltp
使用 pip 安装
$ pip install pyltp或从源代码安装
$ git clone https://github.com/HIT-SCIR/pyltp $ git submodule init $ git submodule update $ python setup.py install # Mac系统出现版本问题使用 MACOSX_DEPLOYMENT_TARGET=10.7 python setup.py install -
第二步,下载模型文件
七牛云,当前模型版本 3.4.0
版本对应
- pyltp 版本:0.2.0
- LTP 版本:3.4.0
- 模型版本:3.4.0
作者
- 徐梓翔 << zxxu@ir.hit.edu.cn >> 2015-01-20 解决跨平台运行问题
- 刘一佳 << yjliu@ir.hit.edu.cn >> 2014-06-12 重组项目
- HuangFJ << biohfj@gmail.com >> 本项目最初作者
Metadata
Release files for pyltp-binary 0.2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Files added late
3 files were uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release files before installing.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyltp-binary-0.2.1.0.tar.gz | 5.5 MB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| pyltp_binary-0.2.1.0-cp39-cp39-win_amd64.whl | CPython 3.9 | CPython 3.9 | Windows x86-64 | Details |
| pyltp_binary-0.2.1.0-cp38-cp38-win_amd64.whl | CPython 3.8 | CPython 3.8 | Windows x86-64 | Details |
| pyltp_binary-0.2.1.0-cp38-cp38-manylinux1_x86_64.whl | CPython 3.8 | CPython 3.8 | Linux glibc 2.5+ x86-64 | Details |
| pyltp_binary-0.2.1.0-cp38-cp38-macosx_10_12_x86_64.whl | CPython 3.8 | CPython 3.8 | macOS 10.12+ x86-64 | Details |
| pyltp_binary-0.2.1.0-cp37-cp37m-win_amd64.whl | CPython 3.7 | CPython 3.7 pymalloc | Windows x86-64 | Details |
| pyltp_binary-0.2.1.0-cp36-cp36m-win_amd64.whl | CPython 3.6 | CPython 3.6 pymalloc | Windows x86-64 | Details |
| pyltp_binary-0.2.1.0-cp36-cp36m-manylinux1_x86_64.whl | CPython 3.6 | CPython 3.6 pymalloc | Linux glibc 2.5+ x86-64 | Details |
Total release size: 87.3 MB
Release files / pyltp-binary-0.2.1.0.tar.gz
| Download URL | pyltp-binary-0.2.1.0.tar.gz |
|---|---|
| Size | 5.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4ecedd74fd6a704a8b7c2623952b2bb1f7750e2f030f19d6814d3adb2da28ad8
|
|
BLAKE2b-256 checksum How to use checksums |
04e7278852feda07f03ff9bfec0c1d8a138512cfe9ed8a20df9888438ce0ab4f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3
|
Release files / pyltp_binary-0.2.1.0-cp39-cp39-win_amd64.whl
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | pyltp_binary-0.2.1.0-cp39-cp39-win_amd64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
3409c3032e7a829230cc964dc331767aff04b0352a6c7260de5cc504248a6476
|
|
BLAKE2b-256 checksum How to use checksums |
e402029b212756f0e4def1f0c04a55e6eb3d46f189150f8ea95cc1ff8d7e3ec8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.4.2 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1
|
Release files / pyltp_binary-0.2.1.0-cp38-cp38-win_amd64.whl
| Download URL | pyltp_binary-0.2.1.0-cp38-cp38-win_amd64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.8 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
ed14b660a09b0bdc06b115b510cb8ccccb03bb9914316715a3ea4a888a5fd555
|
|
BLAKE2b-256 checksum How to use checksums |
2450acfe16c72438f3d921dbede86970cf8b384c0f6ad16479ce56d953482d33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3
|
Release files / pyltp_binary-0.2.1.0-cp38-cp38-manylinux1_x86_64.whl
| Download URL | pyltp_binary-0.2.1.0-cp38-cp38-manylinux1_x86_64.whl |
|---|---|
| Size | 42.8 MB |
| Tags | CPython 3.8 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
20fcf0d89005072f3d41c76dd38d8ee80898ca3637df62fa4b263815cd81e79d
|
|
BLAKE2b-256 checksum How to use checksums |
080c6b9c37748a594ec03f6ec19ca6c1d11a7a1faa3ddf513ded9c4b121468ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5
|
Release files / pyltp_binary-0.2.1.0-cp38-cp38-macosx_10_12_x86_64.whl
| Download URL | pyltp_binary-0.2.1.0-cp38-cp38-macosx_10_12_x86_64.whl |
|---|---|
| Size | 2.4 MB |
| Tags | CPython 3.8 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
51f6496e784b5a7129461e24520e60dd34d9eb5856a0b83012ccbf6bf45ff11c
|
|
BLAKE2b-256 checksum How to use checksums |
b3bdcf732f3cb5c45f80c7333781b662b1d67f301f77eb694744692af03d6857
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3
|
Release files / pyltp_binary-0.2.1.0-cp37-cp37m-win_amd64.whl
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | pyltp_binary-0.2.1.0-cp37-cp37m-win_amd64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Windows x86-64 |
|
SHA-256 checksum How to use checksums |
dbdba2ebb65d4482a4fedd8c0605378604b622658753f25902c60e4d07c400a4
|
|
BLAKE2b-256 checksum How to use checksums |
13ea2cebbcf0416ba9587bc81640340ec7c48e0c0faff5d2d9bb154b967fd8ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.4.2 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1
|
Release files / pyltp_binary-0.2.1.0-cp36-cp36m-win_amd64.whl
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | pyltp_binary-0.2.1.0-cp36-cp36m-win_amd64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Windows x86-64 |
|
SHA-256 checksum How to use checksums |
ba526829789bd386eff20a974a9f8097cf3c0ecf0475ef922ec435f18f11f734
|
|
BLAKE2b-256 checksum How to use checksums |
7ddf2cc65175d1086493846c4d97dcb8214ed8bbe530d00786a53f1ffd64daa1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.4.2 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1
|
Release files / pyltp_binary-0.2.1.0-cp36-cp36m-manylinux1_x86_64.whl
| Download URL | pyltp_binary-0.2.1.0-cp36-cp36m-manylinux1_x86_64.whl |
|---|---|
| Size | 31.7 MB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
d3dc4fb41b74af63e766a81f2eed40e55c871d05b8885757578ade27b0f46951
|
|
BLAKE2b-256 checksum How to use checksums |
89d9a57d3a3ac6b5fd98c4a9aceb70038ead430be72f0c964b51342cdcba3b04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.8
|