Reinitialize the docFrequency array for each new document.