      values = []
  
      for key, value in doc_annot.items():
          if value:
              if key == "entities":
                  pass
              elif key == "links":
                  ent_kb_ids = _parse_links(vocab, tok_annot["ORTH"], tok_annot["SPACY"], value)
                  tok_annot["ENT_KB_ID"] = ent_kb_ids
              elif key == "cats":
 
</s> remove             elif key == "cats":
                pass
 </s> add  </s> remove             elif key in ("cats", "links"):
 </s> add             elif key in ("cats", "links", "spans"): </s> remove             "you're setting don't overlap.")
 </s> add             "you're setting don't overlap. To work with overlapping entities, "
            "consider using doc.spans instead.")
            if key in ["entities", "cats", "spans"]:
      values = []
  
      for key, value in doc_annot.items():
          if value:
            if key in ["entities", "cats", "spans"]:
                  pass
              elif key == "links":
                  ent_kb_ids = _parse_links(vocab, tok_annot["ORTH"], tok_annot["SPACY"], value)
                  tok_annot["ENT_KB_ID"] = ent_kb_ids
              elif key == "cats":
keep keep keep keep replace keep keep keep keep keep
 Support doc.spans in Example.from_dict (#7197)

* add support for spans in Example.from_dict

* add unit tests

* update error to E879 
spacy/training/example.pyx