Skip to main content

分词工具

python版(有node版)

安装

pip install nlp_fenci

command-line

搜狗分词

$ sougou_fenci 武汉市长江大桥
武汉市 n
长江 n
大桥 n

百度分词

$ baidu_fenci 武汉市长江大桥
武汉        地名
长江大桥        地名

sougou 分词 code

import sougou_fenci
resp = sougoou_fenci.sougou("武汉市长江大桥")
for result_item in resp.result:
    print(row_format.format(result_item[0], result_item[1]))

# 结 果
# 武汉市         n
# 长江         n
# 大桥         n

baidu 分词 code

import sougou_fenci
resp = sougoou_fenci.baidu("武汉市长江大桥")
for result_item in resp.result:
    print(row_format.format(result_item[0], result_item[1]))

# 结 果
# 武汉市         地名
# 长江大桥         地名

Metadata

Release files for nlp-fenci 1.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nlp-fenci 1.2.3
File Size Uploaded Provenance Actions
nlp_fenci-1.2.3.tar.gz 2.8 kB Without provenance Details for nlp_fenci-1.2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nlp-fenci 1.2.3
File Interpreter ABI Platform Actions
nlp_fenci-1.2.3-py3-none-any.whl Python 3 none any Details for nlp_fenci-1.2.3-py3-none-any.whl

Total release size: 6.5 kB

Release files / nlp_fenci-1.2.3.tar.gz

Download URL nlp_fenci-1.2.3.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8df2bb8c1383a3239d9a5c670895ce797b3bd19266c00aed1428d260f9991343
BLAKE2b-256 checksum
How to use checksums
7f0570ae6299ff2b7261823b098fe8fa085206b3ca1ec2bb201a9d2951358e05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.13.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.2

Release files / nlp_fenci-1.2.3-py3-none-any.whl

Download URL nlp_fenci-1.2.3-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b7760145a5586852a25361b14c2c143b289bf60fab303d0f6da2402038e10779
BLAKE2b-256 checksum
How to use checksums
037bb0b1710e0a4bd6d31b3b2e3a3d2c2ab468414c30259b149fc81365efb098
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.13.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.2

Security for nlp-fenci 1.2.3

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page