              "spans, you can use the util.filter_spans helper:\n"
              "https://spacy.io/api/top-level#util.filter_spans")
      E103 = ("Trying to set conflicting doc.ents: '{span1}' and '{span2}'. A "
              "token can only be part of one entity, so make sure the entities "
              "you're setting don't overlap.")
      E106 = ("Can't find `doc._.{attr}` attribute specified in the underscore "
              "settings: {opts}")
      E107 = ("Value of `doc._.{attr}` is not JSON-serializable: {value}")
      E109 = ("Component '{name}' could not be run. Did you forget to "
              "call `initialize()`?")
 
</s> remove             elif key in ("cats", "links"):
 </s> add             elif key in ("cats", "links", "spans"): </s> remove             if key == "entities":
 </s> add             if key in ["entities", "cats", "spans"]: </s> remove             elif key == "cats":
                pass
 </s> add 
            "you're setting don't overlap. To work with overlapping entities, "
            "consider using doc.spans instead.")
              "spans, you can use the util.filter_spans helper:\n"
              "https://spacy.io/api/top-level#util.filter_spans")
      E103 = ("Trying to set conflicting doc.ents: '{span1}' and '{span2}'. A "
              "token can only be part of one entity, so make sure the entities "
            "you're setting don't overlap. To work with overlapping entities, "
            "consider using doc.spans instead.")
      E106 = ("Can't find `doc._.{attr}` attribute specified in the underscore "
              "settings: {opts}")
      E107 = ("Value of `doc._.{attr}` is not JSON-serializable: {value}")
      E109 = ("Component '{name}' could not be run. Did you forget to "
              "call `initialize()`?")
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/errors.py