jieba分词报错:AttributeError: ‘float’ object has no attribute ‘decode’
最近在做关于新闻报道的研究,利用jieba分词时,程序报错AttributeError: ‘float’ object has no attribute ‘decode’
原始代码
一下仅展示报错部分代码
content_S = []
current_segment = jieba.lcut(content)
if len(current_segment) > 1 and current_segment !=