              "labels_discard": list(labels_discard),
              "incl_prior": incl_prior,
              "incl_context": incl_context,
          }
          self.kb = kb_loader(self.vocab)
          self.get_candidates = get_candidates
          self.cfg = dict(cfg)
          self.distance = CosineDistance(normalize=False)
          # how many neightbour sentences to take into account
          self.n_sents = cfg.get("n_sents", 0)
 
</s> remove     def _require_kb(self) -> None:
 </s> add     def validate_kb(self) -> None: </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()
              "labels_discard": list(labels_discard),
              "incl_prior": incl_prior,
              "incl_context": incl_context,
          }

          self.get_candidates = get_candidates
          self.cfg = dict(cfg)
          self.distance = CosineDistance(normalize=False)
          # how many neightbour sentences to take into account
          self.n_sents = cfg.get("n_sents", 0)
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