隐去原来的问题,直接举个例子:

【E-21】AttributeError: 'float' object has no attribute 'decode'

二、原因

使用jieba分词时遇到了float类型的数据,需要进行转换。

三、解决方案

修改下输入的格式,转换下:

jieba.lcut(str(str1))

相关文章:

  • 2021-12-21
  • 2021-11-03
  • 2021-12-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-11
  • 2022-12-23
  • 2021-07-04
  • 2021-06-28
相关资源
相似解决方案