final String [] parts = line.split("\t");
term = parts[1];
// prune and write the vector
if(prevTerm != null && !prevTerm.equals(term)){
int [] arrDocs = hmap.keys();
float [] arrScores = hmap.getValues();
HeapSort.heapSort(arrScores, arrDocs);
// prune the vector