Move scores per type handling into util function (#8590)
Move scores per type handling into util function (#8590)


honnibal/spaCy,honnibal/spaCy,explosion/spaCy,explosion/spaCy,honnibal/spaCy,explosion/spaCy,explosion/spaCy,explosion/spaCy,honnibal/spaCy,explosion/spaCy