Last active
July 26, 2021 07:40
-
-
Save Nithilaa/982680df2510c3cc4c5f05ac33dba2f8 to your computer and use it in GitHub Desktop.
return a data frame wherein I’ll have the count of that particular vectorizer that’s applied to a given word and the columns would be my overall feature names that are the individual words.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
features_df = pd.DataFrame(features.toarray(), columns=tf_vectorizer.get_feature_names()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment