add code to check predicted topic and compute precision