compute per-category accuracy and print the category terms (given a file category- label)