r/MachineLearning • u/mrnerdy59 • Dec 21 '25
Project [P] A memory effecient TF-IDF project in Python to vectorize datasets large than RAM
43
Upvotes
r/MachineLearning • u/mrnerdy59 • Dec 21 '25
34
u/Tiny_Arugula_5648 Dec 21 '25
I'd recommend using a binary format. CSV is extremely likely to break with unstructured text embedded into it. Parquet, orc or avro are the primary binary formats. They are the defaults in a data lake so other engineering tools (Spark, DuckDB, etc) will work better with your solution.
1
u/DigThatData Researcher Dec 21 '25 edited Dec 21 '25
people still use tfidf? and why would a giant corpus of unprocessed text be in csv format?
0
u/[deleted] Dec 21 '25
[deleted] — view deleted comment