pyltp

pyltp: the python extension for LTP

https://github.com/hit-scir/pyltp

Science Score: 10.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 7 committers (14.3%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (6.0%) to scientific vocabulary

Keywords

chinese-nlp python
Last synced: 6 months ago · JSON representation

Repository

pyltp: the python extension for LTP

Basic Info
  • Host: GitHub
  • Owner: HIT-SCIR
  • Language: C++
  • Default Branch: master
  • Homepage:
  • Size: 8.76 MB
Statistics
  • Stars: 1,553
  • Watchers: 68
  • Forks: 351
  • Open Issues: 15
  • Releases: 0
Archived Fork of HuangFJ/pyltp
Topics
chinese-nlp python
Created over 11 years ago · Last pushed over 3 years ago
Metadata Files
Readme Changelog

README.md

pyltp

PyPI Status Readthedocs Build Status Build status PyPI Downloads

pyltp 是 语言技术平台(Language Technology Platform, LTP)的 Python 封装。

在使用 pyltp 之前,您需要简要了解 语言技术平台(LTP) 能否帮助您解决问题。

目前基于Pytorch的LTP4 已经发布,而PyLTP将会只有非常有限的维护,请大家移步使用LTP 4

依赖支持情况

Python 2.7, 3.x, and PyPy (PyPy2.7 >= 5.7)

一个简单的例子

下面是一个使用 pyltp 进行分词的例子

```python

-- coding: utf-8 --

from pyltp import Segmentor segmentor = Segmentor("/path/to/your/cws/model") words = segmentor.segment("元芳你怎么看") print("|".join(words)) segmentor.release() ``` 除了分词之外,pyltp 还提供词性标注、命名实体识别、依存句法分析、语义角色标注等功能。

详细使用方法可以参考 example

安装

  • 第一步,安装 pyltp

    使用 pip 安装

    $ pip install pyltp 或从源代码安装

    $ git clone https://github.com/HIT-SCIR/pyltp $ cd pyltp $ git submodule init $ git submodule update $ python setup.py install

    • Mac系统出现版本问题使用 MACOSXDEPLOYMENTTARGET=10.7 python setup.py install
    • 编译时间较长(约5分钟左右),请耐心等待
  • 第二步,下载模型文件

    七牛云,当前模型版本 3.4.0

制作安装包

git submodule init git submodule update python setup.py bdist_wheel

版本对应

  • pyltp 版本:0.4.0
  • LTP 版本:3.4.0
  • 模型版本:3.4.0

作者

  • 冯云龙 << ylfeng@ir.hit.edu.cn >> 2020-7-30 重写代码,换用 Pybind11
  • 徐梓翔 << zxxu@ir.hit.edu.cn >> 2015-01-20 解决跨平台运行问题
  • 刘一佳 << yjliu@ir.hit.edu.cn >> 2014-06-12 重组项目
  • HuangFJ << biohfj@gmail.com >> 本项目最初作者

Owner

  • Name: 哈工大社会计算与信息检索研究中心
  • Login: HIT-SCIR
  • Kind: organization
  • Location: Harbin, China

GitHub Events

Total
  • Watch event: 21
  • Fork event: 2
Last Year
  • Watch event: 21
  • Fork event: 2

Committers

Last synced: over 2 years ago

All Time
  • Total Commits: 199
  • Total Committers: 7
  • Avg Commits per committer: 28.429
  • Development Distribution Score (DDS): 0.683
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Oneplus o****u@g****m 63
endyul z****l@g****m 45
ylfeng y****g@i****n 42
liu946 l****1@g****m 31
Jon Huang b****j@g****m 15
Along 2****Y 2
gbolin n****s@1****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 7 months ago

All Time
  • Total issues: 123
  • Total pull requests: 8
  • Average time to close issues: about 1 year
  • Average time to close pull requests: about 1 year
  • Total issue authors: 91
  • Total pull request authors: 5
  • Average comments per issue: 3.59
  • Average comments per pull request: 0.13
  • Merged pull requests: 3
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • appleyuchi (4)
  • beyondguo (2)
  • MrRace (2)
  • ghost (2)
  • Sniper-LZX (2)
  • wjx-git (2)
  • cllx (2)
  • dabao0903 (1)
  • cailurus (1)
  • evanhasnoclue (1)
  • MAJIN123 (1)
  • jiangpeng12345 (1)
  • dejungle (1)
  • xbc0112 (1)
  • david-sail (1)
Pull Request Authors
  • gbolin (1)
  • liu946 (1)
  • m2kar (1)
  • yangqinj (1)
  • snowlord (1)
Top Labels
Issue Labels
windows (4) feature want (4) bug (3) duplicate (3) details needed (1) cannot reproduce (1) wontfix (1)
Pull Request Labels

Packages

  • Total packages: 4
  • Total downloads:
    • pypi 656 last-month
  • Total docker downloads: 52
  • Total dependent packages: 0
    (may contain duplicates)
  • Total dependent repositories: 76
    (may contain duplicates)
  • Total versions: 16
  • Total maintainers: 5
pypi.org: pyltp

pyltp: the python extension for LTP 3

  • Versions: 11
  • Dependent Packages: 0
  • Dependent Repositories: 75
  • Downloads: 622 Last month
  • Docker Downloads: 52
Rankings
Dependent repos count: 1.7%
Stargazers count: 1.7%
Forks count: 2.8%
Docker downloads count: 4.0%
Average: 4.4%
Downloads: 5.8%
Dependent packages count: 10.0%
Maintainers (4)
Last synced: 6 months ago
proxy.golang.org: github.com/HIT-SCIR/pyltp
  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 6.5%
Average: 6.7%
Dependent repos count: 6.9%
Last synced: 6 months ago
proxy.golang.org: github.com/hit-scir/pyltp
  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 6.5%
Average: 6.7%
Dependent repos count: 6.9%
Last synced: 6 months ago
pypi.org: pyltp-binary

pyltp: the python extension for LTP

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 34 Last month
Rankings
Stargazers count: 1.7%
Forks count: 2.8%
Dependent packages count: 10.0%
Average: 12.3%
Dependent repos count: 21.7%
Downloads: 25.4%
Maintainers (1)
Last synced: 6 months ago