按拼音和笔顺快速排序大量简体中文词组(支持百万数量级)。
Project description
cn_sort
按拼音和笔顺精确、快速排序大量简体中文词组(支持百万数量级,简体中文与非中文混用的词组也可),有效解决多音字混排的问题。
使用
from cn_sort.process_cn_word import *
text_list = ["重心", "河水", "重庆", "河流", "WTO世贸组织"] # 待排序的中文词组列表
result_text_list=list(sort_text_list(text_list)) # 按拼音和笔顺排序后的中文字组列表
print(result_text_list)
# 输出为:
# ['WTO世贸组织', '重庆', '河流', '河水', '重心']
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
cn_sort-0.5.9.tar.gz
(210.2 kB
view hashes)
Built Distribution
cn_sort-0.5.9-py3-none-any.whl
(208.9 kB
view hashes)