Merge pull request #45 from cloudaice/cloudaice-dev

使用更明确的表达
pull/46/head
Sun Junyi 12 years ago
commit c2f4b04722

@ -190,7 +190,7 @@ def __cut_DAG(sentence):
for t in regognized:
yield t
def cut(sentence,cut_all=False):
if not ( type(sentence) is unicode):
if not isinstance(sentence, unicode):
try:
sentence = sentence.decode('utf-8')
except:

Loading…
Cancel
Save