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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: sougou_fenci-1.1.7.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.7.tar.gz
Algorithm Hash digest
SHA256 3407cadf8851f2dd24a0d5d6d75ddbf8fad029217a70cd281962e88745fbfcab
MD5 6b3bb2d2e2c6833956459ec52b26acd5
BLAKE2b-256 fb0eded15d153af02160a645e6fdcdb7b3917ad9c90d3e9312fb28cd248c4ed2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sougou_fenci-1.1.7-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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 dfd6604a88d8175cf9eb45d427f8de300ddfa7996bb96533f471efb2500f604c
MD5 aed272994393ad1d23c1aa8e4c8ae263
BLAKE2b-256 c64059a3f190800c5328338d3079959fb7f401e9af6d8453c64ed010f3502b73

See more details on using hashes here.

Supported by

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