I would propose the following procedure. For each chunk of 10k:
- Calculate word frequencies for each text
- If the corpus document frequency (df) component does not exist, initialize by summing theusing all text word frequencies. Else, update with the counts from the chunk (add to previous df matrix)+ transforms necessary. You can handle new words by adding in "zero" columns to the old chunks.
- Recalculate tfidf for all processed chunks by taking tf and dividing by idf.
Does that work for you? Normal considerations about trimming sparse words, etc. apply.