我正在尝试对文本数据进行矢量化,但出现以下错误
AttributeError: 'list' 对象没有属性 'lower'
我的代码:
yourResult = [str(sentence).split(' ') for sentence in tag_data["Tags"]]
vectorizer = CountVectorizer()
tag_dtm = vectorizer.fit_transform(yourResult)#tag.apply(lambda x: str(x).split(" ")))