Working code with overall precision, recall and sub-label wise