fix the bug about issue: #92

This commit is contained in:
Sun Junyi 2013-08-09 13:59:02 +08:00
parent 81390a2d23
commit 90ab511deb

View File

@ -223,8 +223,9 @@ def cut(sentence,cut_all=False):
if cut_all:
cut_block = __cut_all
for blk in blocks:
if len(blk)==0:
continue
if re_han.match(blk):
#pprint.pprint(__cut_DAG(blk))
for word in cut_block(blk):
yield word
else: