The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
prune vales from TF-IDF vectors
Hi all,
I'm processing a set of documents for files, in order to generate a TF-IDF vector for each document.
For each document I'm getting severall scores below 1%.
Is there any possibility to prune all values below 1%?
I've tried all the prune by ranking method, but unfortunatley I'm not getting the results that I'm expecting. Is there any other way to work around?
Thank you.
Regards,
I'm processing a set of documents for files, in order to generate a TF-IDF vector for each document.
For each document I'm getting severall scores below 1%.
Is there any possibility to prune all values below 1%?
I've tried all the prune by ranking method, but unfortunatley I'm not getting the results that I'm expecting. Is there any other way to work around?
Thank you.
Regards,
0
Answers
what exactly do you want to do? If the TF-IDF value for one document is below 1%, it's probably 90% for another document. That means, that you can't remove the whole column, because then you would also remove the high value of the other document. So what should happen in that case?
Best,
Marius
Thank you for your reply.
Probably I was not clear enough with my explanation. Sorry for that.
Lets assuming that I'm processing something like 10 docs. And I'm getting a TF-IDF vector for each document.
As you mention, and you are 100% right, that are some words that are not relavant for a particular document (let's say below 5%) but maybe be very relevant for other documents (around 50%).
But also, I can came across words that the range is between 0.0 and 0.04. Which means that the maximum rank that such word can have is 4% for a particular document.
My question is: How to eliminate such words, that have a minimum inpact for all documents.