nlp_base
nlp_base copied to clipboard
AttributeError: 'float' object has no attribute 'decode'
So sorry to bother you again...
when I use "train()"
the error occur: Building prefix dict from the default dictionary ... Loading model from cache /tmp/jieba.cache Loading model cost 0.173 seconds. Prefix dict has been built succesfully.
Traceback (most recent call last):
File "
you can just move decode('utf-8') directly. Beacuse in python 3, it was unicode str.
我用的是:demjson.encode(text, encoding='utf-8')