Skip to main content

搜狗分词工具

Project description

搜狗分词工具

python版(有node版)

安装

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.1.4.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

sougou_fenci-1.1.4-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sougou_fenci-1.1.4.tar.gz
  • Upload date:
  • Size: 2.8 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.1.4.tar.gz
Algorithm Hash digest
SHA256 a47c67216081ff475e948b9bfeb1414667714ee4bd7f71c9662f4b614a20921a
MD5 13ffc3a464191a9e7911ad45d921a9af
BLAKE2b-256 61c0508f748e564a6c98d3f538e9c9b7ef58aca783ec019894de803a4c27c8bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sougou_fenci-1.1.4-py3-none-any.whl
  • Upload date:
  • Size: 3.7 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.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0a01c660b35c3a4aa7ca4365f915c0cc94c1100d2f2e11c6813d83d59a86d71d
MD5 16199990bc42c84cbc1309b23d3920f9
BLAKE2b-256 565f4b199078677b1ea53fa80a4e600fe58346c47da0640e110122049cc1ec93

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