              start_char, end_char = index
              start_token = starts.get(start_char)
              end_token = ends.get(end_char)
              for i in range(start_token, end_token+1):
                  ent_kb_ids[i] = true_kb_ids[0]
  
      return ent_kb_ids
  
 
</s> remove             "entities": [(7, 15, "LOC"), (20, 26, "LOC")],
            "links": {(0, 1): {"Q7381115": 1.0, "Q2146908": 0.0}},
 </s> add             "links": {(7, 14): {"Q7381115": 1.0, "Q2146908": 0.0}},
            if start_token is None or end_token is None:
                raise ValueError(Errors.E981)
              start_char, end_char = index
              start_token = starts.get(start_char)
              end_token = ends.get(end_char)
            if start_token is None or end_token is None:
                raise ValueError(Errors.E981)
              for i in range(start_token, end_token+1):
                  ent_kb_ids[i] = true_kb_ids[0]
  
      return ent_kb_ids
  
keep keep add keep keep keep keep keep
 raise error when links are not aligned to tokens 
spacy/gold/example.pyx