From c096c5a862f821b416e9c9a6a9a7c5c6eb030615 Mon Sep 17 00:00:00 2001 From: Bob Date: Tue, 13 Aug 2024 05:40:58 -0400 Subject: [PATCH] update --- unsupervised_class/tweets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unsupervised_class/tweets.py b/unsupervised_class/tweets.py index aeb4552a..6ffba008 100644 --- a/unsupervised_class/tweets.py +++ b/unsupervised_class/tweets.py @@ -66,7 +66,7 @@ def filter_tweet(s): # transform the text into a data matrix tfidf = TfidfVectorizer(max_features=100, stop_words=stopwords) -X = tfidf.fit_transform(text).todense() +X = tfidf.fit_transform(text).asformat('array') # subsample for efficiency