      E202 = ("Unsupported alignment mode '{mode}'. Supported modes: {modes}.")
  
      # New errors added in v3.x
  
      E880 = ("The 'wandb' library could not be found - did you install it? "
              "Alternatively, specify the 'ConsoleLogger' in the 'training.logger' "
              "config section, instead of the 'WandbLogger'.")
      E885 = ("entity_linker.set_kb received an invalid 'kb_loader' argument: expected "
 
</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.") </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 
    E879 = ("Unexpected type for 'spans' data. Provide a dictionary mapping keys to "
            "a list of spans, with each span represented by a tuple (start_char, end_char). "
            "The tuple can be optionally extended with a label and a KB ID.")
      E202 = ("Unsupported alignment mode '{mode}'. Supported modes: {modes}.")
  
      # New errors added in v3.x
  
    E879 = ("Unexpected type for 'spans' data. Provide a dictionary mapping keys to "
            "a list of spans, with each span represented by a tuple (start_char, end_char). "
            "The tuple can be optionally extended with a label and a KB ID.")
      E880 = ("The 'wandb' library could not be found - did you install it? "
              "Alternatively, specify the 'ConsoleLogger' in the 'training.logger' "
              "config section, instead of the 'WandbLogger'.")
      E885 = ("entity_linker.set_kb received an invalid 'kb_loader' argument: expected "
keep keep keep add 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