read in document frequency