Separate out some logic from f1 score for reuse elsewhere. (#1090)
Separate out some logic from f1 score for reuse elsewhere. (#1090)


facebookresearch/ParlAI,facebookresearch/ParlAI,facebookresearch/ParlAI,facebookresearch/ParlAI,facebookresearch/ParlAI