  
      DOCS: TODO
      """
      name = 'entity_linker'
  
      @classmethod
      def Model(cls, **cfg):
          embed_width = cfg.get("embed_width", 300)
          hidden_width = cfg.get("hidden_width", 128)
          type_to_int = cfg.get("type_to_int", dict())
 
</s> remove         final_entities = []
 </s> add         entity_count = 0 </s> remove         entities, kb_ids = self.predict([doc])
        self.set_annotations([doc], entities, kb_ids)
 </s> add         kb_ids = self.predict([doc])
        self.set_annotations([doc], kb_ids) </s> remove     def set_annotations(self, docs, entities, kb_ids=None):
        for entity, kb_id in zip(entities, kb_ids):
            for token in entity:
                token.ent_kb_id_ = kb_id
 </s> add         return final_kb_ids

    def set_annotations(self, docs, kb_ids, tensors=None):
        i=0
        for doc in docs:
            for ent in doc.ents:
                kb_id = kb_ids[i]
                i += 1
                for token in ent:
                    token.ent_kb_id_ = kb_id </s> remove             entities, kb_ids = self.predict(docs)
            self.set_annotations(docs, entities, kb_ids)
 </s> add             kb_ids = self.predict(docs)
            self.set_annotations(docs, kb_ids)
    NIL = "NIL"  # string used to refer to a non-existing link
  
      DOCS: TODO
      """
      name = 'entity_linker'
    NIL = "NIL"  # string used to refer to a non-existing link
  
      @classmethod
      def Model(cls, **cfg):
          embed_width = cfg.get("embed_width", 300)
          hidden_width = cfg.get("hidden_width", 128)
          type_to_int = cfg.get("type_to_int", dict())
keep keep keep add keep keep keep keep keep keep
 have gold.links correspond exactly to doc.ents 
spacy/pipeline/pipes.pyx