pyltp: the python extension for LTP
Project description
pyltp是语言技术平台(Language Technology Platform,LTP)的Python封装。 关于LTP更多的信息,欢迎访问LTP项目主页。
简介与背景知识
pyltp是语言技术平台(Language Technology Platform,LTP)接口的一个Python封装。 本项目旨在使Python用户可以本地调用LTP。 该项目还处于测试状态,欢迎反馈bug。
在使用pyltp之前,您需要简要了解
什么是语言技术平台,它能否帮助您解决问题
如果您对这些问题不了解,请首先阅读我们提供的有关语言技术平台的文档。 在本文档的后续中,我们假定您已经阅读并成功编译并使用语言技术平台。
安装
现阶段,pyltp主要在Linux编译测试。我们也欢迎用户提供其他平台的测试结果。
pypi安装
$ pip install pyltp
如果您使用使用github的开发版的pyltp,您可以采用如下命令编译pyltp
$ git clone https://github.com/HIT-SCIR/pyltp $ git submodule init $ git submodule update $ python setup.py build
例子
# -*- coding: utf-8 -*-
from pyltp import Segmentor
segmentor = Segmentor()
segmentor.load("/path/to/your/cws/model")
words = segmentor.segment("元芳你怎么看")
print "|".join(words)
更多例子,请参考example/example.py
作者
刘一佳 << yjliu@ir.hit.edu.cn >> 2014-06-12 重组项目
HuangFJ << biohfj@gmail.com >> 本项目最初作者
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyltp-0.1.2.tar.gz.
File metadata
- Download URL: pyltp-0.1.2.tar.gz
- Upload date:
- Size: 2.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2bd4e4dcca7899f465630e63d9a78c434a2766a018d7a3d06a9801461aeed708
|
|
| MD5 |
b80d0dbf20726c940b6b61656088d730
|
|
| BLAKE2b-256 |
b0722673699bab5b437b8a623887ec0b92dd813d3eaddaebd0427128dfb2109a
|
File details
Details for the file pyltp-0.1.2.win-amd64-py2.7.exe.
File metadata
- Download URL: pyltp-0.1.2.win-amd64-py2.7.exe
- Upload date:
- Size: 957.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ad8a2e93213325a85dc1036becb7e968163bf709784ea4ce63688d0a1fe6c15
|
|
| MD5 |
5a3c5def72fdd53392d85d8631edf227
|
|
| BLAKE2b-256 |
d1219e49309113a943a188943dcc2fc702b0e9e84ccaa82f06a12aba6d30cca0
|