mirror of
https://gitee.com/clygintang/Dockfile-Coreseek.git
synced 2025-07-21 00:00:15 +08:00
7 lines
177 B
Python
Executable File
7 lines
177 B
Python
Executable File
# -*- coding: utf-8 -*-
|
|
|
|
import cmmseg
|
|
cmmseg.init('F:\\deps\\mmseg\\src\\win32')
|
|
rs = cmmseg.segment((u'中文分词').encode('utf-8'))
|
|
for i in rs:
|
|
print i.decode('utf-8') |