我有一个小python管道。一个类清理和柠檬化数据。
它返回字符串列表(即List[List[str]]
)。然后我将列表传递给另一个类,这个类将数据传递给gensim字典
但是,以下代码引发此异常:
dictionary = corpora.Dictionary(self.bowlist)
AttributeError: 'list' object has no attribute 'bowlist'
代码:
^{pr2}$我是Python新手,但是我已经检查过debug和其他方法,bowlist是一个List[List[str]]。在
你这样用吗?在
这很好:
^{pr2}$或者用这个改变你的代码?在
相关问题 更多 >
编程相关推荐