def match(cls, responses, targets) -> float:
        """Exact match between targets and responses."""
        if responses is None:
            return 0
        responses = cast_to_set(responses)
        targets = cast_to_set(targets)

        return jaccard_index(responses, targets)
Exact match between targets and responses.
vlmeval/dataset/utils/megabench/scoring/jaccard.py