Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use TF-IDF when it is not categorical? #328

Open
sr13579 opened this issue Apr 1, 2024 · 1 comment
Open

How to use TF-IDF when it is not categorical? #328

sr13579 opened this issue Apr 1, 2024 · 1 comment

Comments

@sr13579
Copy link

sr13579 commented Apr 1, 2024

Maybe I am asking a very 'noob' question. If the tfidf doesn't work with categorical data then how can I use it on a document?
Example tutorials are to find. Anyone here to help?

@andrewdalpino
Copy link
Member

Hey @sr13579, TF-IDF works on token frequency vectors. You can transform blobs of text into token frequency vectors using either Word Count Vectorizer or Token Hashing Vectorizer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants