jieba分词报错:AttributeError: ‘float’ object has no attribute ‘decode’最近在做关于新闻报道的研究,利用jieba分词时,程序报错AttributeError: ‘float’ object has no attribute ‘decode’原始代码一下仅展示报错部分代码content_S = []current_segment...
摘要由CSDN通过智能技术生成
jieba分词报错:AttributeError: ‘float’ object has no attribute ‘decode’
最近在做关于新闻报道的研究,利用jieba分词时,程序报错AttributeError: ‘float’ object has no attribute ‘decode’
原始代码
一下仅展示报错部分代码
content_S =[]
current_segment = jieba.lcut(content)iflen(current_segment)>1 and current_segment
jieba分词报错:AttributeError: 'float' object has no attribute 'decode'
jieba分词报错:AttributeError: ‘float’ object has no attribute ‘decode’最近在做关于新闻报道的研究,利用jieba分词时,程序报错AttributeError: ‘float’ object has no attribute ‘decode’原始代码一下仅展示报错部分代码content_S = []current_segment...