mirror of
https://github.com/fxsjy/jieba.git
synced 2025-07-10 00:01:33 +08:00
improve the speed
This commit is contained in:
parent
72a185b0ab
commit
164b782c4e
@ -106,7 +106,7 @@ def __cut_DAG(sentence):
|
||||
yield buf
|
||||
buf=u''
|
||||
else:
|
||||
regognized = finalseg.cut(buf)
|
||||
regognized = finalseg.__cut(buf)
|
||||
for t in regognized:
|
||||
yield t
|
||||
buf=u''
|
||||
@ -117,7 +117,7 @@ def __cut_DAG(sentence):
|
||||
if len(buf)==1:
|
||||
yield buf
|
||||
else:
|
||||
regognized = finalseg.cut(buf)
|
||||
regognized = finalseg.__cut(buf)
|
||||
for t in regognized:
|
||||
yield t
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user