Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bob7783 committed Aug 13, 2024
1 parent bf9388a commit c096c5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unsupervised_class/tweets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c096c5a

Please sign in to comment.