分词工具
python版(有node版)
安装
pip install nlp_segmentation
command-line
搜狗分词
$ sougou_fenci 武汉市长江大桥
武汉市 n
长江 n
大桥 n
百度分词
$ baidu_fenci 武汉市长江大桥
武汉 地名
长江大桥 地名
sougou 分词 code
import nlp_segmentation
resp = nlp_segmentation.sougou("武汉市长江大桥")
for result_item in resp.result:
print(row_format.format(result_item[0], result_item[1]))
# 结 果
# 武汉市 n
# 长江 n
# 大桥 n
baidu 分词 code
import nlp_segmentation
resp = nlp_segmentation.baidu("武汉市长江大桥")
for result_item in resp.result:
print(row_format.format(result_item[0], result_item[1]))
# 结 果
# 武汉市 地名
# 长江大桥 地名
Metadata
Release files for nlp_segmentation 1.2.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nlp_segmentation-1.2.7.tar.gz | 2.9 kB | Without provenance | Details for nlp_segmentation-1.2.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nlp_segmentation-1.2.7-py3-none-any.whl | Python 3 | none | any | Details for nlp_segmentation-1.2.7-py3-none-any.whl |
Total release size: 7.9 kB
Release files / nlp_segmentation-1.2.7.tar.gz
| Download URL | nlp_segmentation-1.2.7.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d61b19d9dfb628e176e8e76ceecc15a3c6b1b77f606bb0db216376558b228d00
|
|
BLAKE2b-256 checksum How to use checksums |
5962cdca47dff14cab0e791e09781e281b027d6dc34718a13c857eb437169ce1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|
Release files / nlp_segmentation-1.2.7-py3-none-any.whl
| Download URL | nlp_segmentation-1.2.7-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ec82c9fb910fd44e402769bae99327c83c96a2e3d0ed9e8ad484f0e9861588cb
|
|
BLAKE2b-256 checksum How to use checksums |
3cbafb4df1faf3688d66988994947fe6cc3151c715b6a2fa99a10baeb169afb7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|
Security for nlp_segmentation 1.2.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.