Skip to main content

搜狗分词工具

Project description

搜狗分词工具

安装

pip install sougou_fenci

command-line

$ sougou_fenci 武汉市长江大桥 -> 武汉市 n 长江 n 大桥 n commandline

code

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sougou_fenci-1.0.1.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

sougou_fenci-1.0.1-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file sougou_fenci-1.0.1.tar.gz.

File metadata

  • Download URL: sougou_fenci-1.0.1.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for sougou_fenci-1.0.1.tar.gz
Algorithm Hash digest
SHA256 cc511f2ac04e255e9ec2f4f8af43dda505ce09d032cc53a28d029310423f9f0b
MD5 bd1202f4d7c7945a29e2373d82f816bd
BLAKE2b-256 ca5f387d8ca49df3127e39d53b0957a78a4b26f6bc0a4881f57c2d4fbef6c4b7

See more details on using hashes here.

File details

Details for the file sougou_fenci-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: sougou_fenci-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for sougou_fenci-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 04abf9239cdc92a77f9a3c4f7172694ba534ffee14c1d9e3a529383926c1e48b
MD5 6b7e1dd3d2ad53f8ff18a8b27ab003c5
BLAKE2b-256 419e9e5fee59d4b30ab21b2df8e04efa01e41a23419379a17b5bcf49e9545dbc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page