def batch_has_learnable_example(self, examples):
        """Check if a batch contains a learnable example.

        If one isn't present, then the update step needs to be skipped.
        """

        for eg in examples:
            for ent in eg.predicted.ents:
                candidates = list(self.get_candidates(self.kb, ent))
                if candidates:
                    return True

        return False
Check if a batch contains a learnable example.

        If one isn't present, then the update step needs to be skipped.
        
spacy/pipeline/entity_linker.py