pyltp:pyltp

上传者: 42165973 | 上传时间: 2021-06-13 13:16:20 | 文件大小: 27KB | 文件类型: ZIP
pyltp pyltp 是 的 Python 封装。 在使用 pyltp 之前,您需要简要了解 能否帮助您解决问题。 目前基于Pytorch的LTP4 已经发布,而PyLTP将会只有非常有限的维护,请大家移步使用[LTP 4]() 依赖支持情况 Python 2.7, 3.x, and PyPy (PyPy2.7 >= 5.7) 一个简单的例子 下面是一个使用 pyltp 进行分词的例子 # -*- coding: utf-8 -*- from pyltp import Segmentor segmentor = Segmentor("/path/to/your/cws/model") words = segmentor.segment("元芳你怎么看") print("|".join(words)) segmentor.release() 除了分词之外,pyltp 还提供词性标注、命名

文件下载

资源详情

[{"title":"( 25 个子文件 27KB ) pyltp:pyltp","children":[{"title":"pyltp-master","children":[{"title":"MANIFEST.in <span style='color:#111;'> 665B </span>","children":null,"spread":false},{"title":".github","children":[{"title":"ISSUE_TEMPLATE.md <span style='color:#111;'> 2.01KB </span>","children":null,"spread":false},{"title":"PULL_REQUEST_TEMPLATE.md <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false},{"title":"workflows","children":[{"title":"python-publish.yml <span style='color:#111;'> 1.73KB </span>","children":null,"spread":false},{"title":"python-package.yml <span style='color:#111;'> 1.57KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".gitmodules <span style='color:#111;'> 159B </span>","children":null,"spread":false},{"title":".travis","children":[{"title":"install.sh <span style='color:#111;'> 613B </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"pyltp.cpp <span style='color:#111;'> 12.37KB </span>","children":null,"spread":false}],"spread":true},{"title":"ltp","children":null,"spread":false},{"title":"doc","children":[{"title":"make.bat <span style='color:#111;'> 7.30KB </span>","children":null,"spread":false},{"title":"install.rst <span style='color:#111;'> 940B </span>","children":null,"spread":false},{"title":"conf.py <span style='color:#111;'> 9.11KB </span>","children":null,"spread":false},{"title":"index.rst <span style='color:#111;'> 344B </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 7.66KB </span>","children":null,"spread":false},{"title":"start.rst <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"api.rst <span style='color:#111;'> 11.44KB </span>","children":null,"spread":false},{"title":"intro.rst <span style='color:#111;'> 248B </span>","children":null,"spread":false},{"title":"changelog.rst <span style='color:#111;'> 126B </span>","children":null,"spread":false}],"spread":true},{"title":"CMakeLists.txt <span style='color:#111;'> 620B </span>","children":null,"spread":false},{"title":"example","children":[{"title":"lexicon.txt <span style='color:#111;'> 10B </span>","children":null,"spread":false},{"title":"example.py <span style='color:#111;'> 2.87KB </span>","children":null,"spread":false}],"spread":true},{"title":"setup.py <span style='color:#111;'> 3.66KB </span>","children":null,"spread":false},{"title":"CHANGES.rst <span style='color:#111;'> 126B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 2.48KB </span>","children":null,"spread":false},{"title":"pybind11","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 352B </span>","children":null,"spread":false},{"title":"pyproject.toml <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明