Skip to content

2000ccc/scel2txt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

将搜狗(sogou)的细胞词库转换为txt文件


环境:python3.5,python2请看:https://github.com/archerhu/scel2mmseg

使用方式如下:

  1. 作为工具使用

    python3 scel2txt.py ./ ./dict.txt
    

    第一个参数:./ 表明scel文件的目录,也可以指定单个文件:./亲戚称呼.scel 第二个参数(可选),默认为:./dict.txt

  2. 整合在其他程序中

        for word in transform("./"):
            print(word)

    或者

       transform_and_save("./", "./dict.txt")

About

转换搜狗拼音词库为txt文件

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%