搜狗分词工具
Project description
分词工具
python版(有node版)
安装
pip install sougou_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]))
# 结 果
# 武汉市长江大桥 地名
Project details
Release history Release notifications | RSS feed
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.9.tar.gz
(2.8 kB
view details)
Built Distribution
File details
Details for the file sougou_fenci-1.1.9.tar.gz
.
File metadata
- Download URL: sougou_fenci-1.1.9.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e9d5586a942e7e6b29dd195082c61ee9c3ca6fe57aeba1fb79eb4b19640edd2 |
|
MD5 | 96323bc77f291b04106ce87c5298b86f |
|
BLAKE2b-256 | a64ce65ebdf790ed60284e22d5d72e315f6c54b7515d8821f6aeab8e92296dd8 |
File details
Details for the file sougou_fenci-1.1.9-py3-none-any.whl
.
File metadata
- Download URL: sougou_fenci-1.1.9-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | d80b4dc42f7412e05393a80b88932a9b356e8b873e8082d99e028967c26a0023 |
|
MD5 | 6026a705c6f622b1cd2af3ed95e53611 |
|
BLAKE2b-256 | da45d2e5402fa6ec6317dca94d1f732fe367dc100ad722627cf6ba50c0d27c03 |