texts = ["Assisti a um filme bom", "Assisti a um filme ruim"]
bag_of_words = vectorizer.fit_transform(texts)
sparse_matrix = pd.SparseDataFrame(bag_of_words,
columns = vectorizer.get_feature_names())
erro retornado:
TypeError Traceback (most recent call last)
<ipython-input-66-6a2bbc50a4ef> in <module>()
----> 1 sparse_matrix = pd.SparseDataFrame(bag_of_words, columns = vectorizer.get_feature_names())
TypeError: object() takes no parameters