使用vectorizer.fit_transform时出现AttributeError: 'file' object has no attribute 'lower'

问题 最近在读书《Building Machine Learning Systems with Python》1初版,发现其中的一个代码错误,python AttributeError: ‘file’ object has no attribute ‘lower’web 产生该错误的代码为:svg import os os.listdir('./data/toy/') posts = [open(
相关文章
相关标签/搜索