mirror of
https://github.com/fxsjy/jieba.git
synced 2025-07-10 00:01:33 +08:00
fix the bug about issue: #92
This commit is contained in:
parent
81390a2d23
commit
90ab511deb
@ -223,8 +223,9 @@ def cut(sentence,cut_all=False):
|
|||||||
if cut_all:
|
if cut_all:
|
||||||
cut_block = __cut_all
|
cut_block = __cut_all
|
||||||
for blk in blocks:
|
for blk in blocks:
|
||||||
|
if len(blk)==0:
|
||||||
|
continue
|
||||||
if re_han.match(blk):
|
if re_han.match(blk):
|
||||||
#pprint.pprint(__cut_DAG(blk))
|
|
||||||
for word in cut_block(blk):
|
for word in cut_block(blk):
|
||||||
yield word
|
yield word
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user