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
Repository
pyltp: the python extension for LTP
Basic Info
Statistics
- Stars: 1,553
- Watchers: 68
- Forks: 351
- Open Issues: 15
- Releases: 0
Topics
Metadata Files
README.md
pyltp
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
- Website: http://ir.hit.edu.cn
- Repositories: 20
- Profile: https://github.com/HIT-SCIR
GitHub Events
Total
- Watch event: 21
- Fork event: 2
Last Year
- Watch event: 21
- Fork event: 2
Committers
Last synced: over 2 years ago
Top Committers
| Name | 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
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
- Homepage: https://github.com/HIT-SCIR/pyltp
- Documentation: https://pyltp.readthedocs.io/
- License: MIT License
-
Latest release: 0.4.0
published over 3 years ago
Rankings
proxy.golang.org: github.com/HIT-SCIR/pyltp
- Documentation: https://pkg.go.dev/github.com/HIT-SCIR/pyltp#section-documentation
-
Latest release: v0.4.0
published over 3 years ago
Rankings
proxy.golang.org: github.com/hit-scir/pyltp
- Documentation: https://pkg.go.dev/github.com/hit-scir/pyltp#section-documentation
-
Latest release: v0.4.0
published over 3 years ago
Rankings
pypi.org: pyltp-binary
pyltp: the python extension for LTP
- Homepage: https://github.com/HIT-SCIR/pyltp
- Documentation: https://pyltp-binary.readthedocs.io/
- License: MIT License
-
Latest release: 0.2.1.0
published almost 5 years ago