          RETURNS (Dict[str, float]): The updated losses dictionary.
  
          DOCS: https://nightly.spacy.io/api/entitylinker#update
          """
          self._require_kb()
          if losses is None:
              losses = {}
          losses.setdefault(self.name, 0.0)
          if not examples:
              return losses
 
</s> remove         self._require_kb()
 </s> add         self.validate_kb() </s> remove         self._require_kb()
 </s> add         if kb_loader is not None:
            self.kb = kb_loader(self.vocab)
            self.cfg["entity_vector_length"] = self.kb.entity_vector_length
        self.validate_kb() </s> remove         kb_loader (Callable[[Vocab], KnowledgeBase]): A function that creates a KnowledgeBase from a Vocab instance.
 </s> add  </s> remove     def _require_kb(self) -> None:
 </s> add     def validate_kb(self) -> None:
        self.validate_kb()
          RETURNS (Dict[str, float]): The updated losses dictionary.
  
          DOCS: https://nightly.spacy.io/api/entitylinker#update
          """
        self.validate_kb()
          if losses is None:
              losses = {}
          losses.setdefault(self.name, 0.0)
          if not examples:
              return losses
keep keep keep keep replace keep keep keep keep keep
 move kb_loader to initialize for NEL instead of constructor 
spacy/pipeline/entity_linker.py