      "annots",
      [
          {
              "words": ["I", "like", "New", "York", "and", "Berlin", "."],
              "entities": [(7, 15, "LOC"), (20, 26, "LOC")],
              "links": {(0, 1): {"Q7381115": 1.0, "Q2146908": 0.0}},
          }
      ],
  )
  def test_Example_from_dict_with_links_invalid(annots):
      vocab = Vocab()
 
</s>
            "links": {(7, 14): {"Q7381115": 1.0, "Q2146908": 0.0}},
      "annots",
      [
          {
              "words": ["I", "like", "New", "York", "and", "Berlin", "."],
            "links": {(7, 14): {"Q7381115": 1.0, "Q2146908": 0.0}},
            "links": {(7, 14): {"Q7381115": 1.0, "Q2146908": 0.0}},
          }
      ],
  )
  def test_Example_from_dict_with_links_invalid(annots):
      vocab = Vocab()
keep keep keep keep replace replace keep keep keep keep keep
 raise error when links are not aligned to tokens
spacy/tests/test_new_example.py