              pass
          elif key.lower() in remapping:
              token_dict[remapping[key.lower()]] = value
          else:
              raise KeyError(Errors.E983.format(key=key, dict="token_annotation", keys=remapping.keys()))
      text = example_dict.get("text", example_dict.get("raw"))
      if _has_field(token_dict, "ORTH") and not _has_field(token_dict, "SPACY"):
          token_dict["SPACY"] = _guess_spaces(text, token_dict["ORTH"])
      if "HEAD" in token_dict and "SENT_START" in token_dict:
          # If heads are set, we don't also redundantly specify SENT_START.
 
</s> remove         truths = [eg.get_aligned("tag", as_string=True) for eg in examples]
 </s> add         truths = [eg.get_aligned("TAG", as_string=True) for eg in examples] </s> remove             for x in eg.get_aligned("sent_start"):
 </s> add             for x in eg.get_aligned("SENT_START"): </s> remove     aligned_tags = example.get_aligned("tag", as_string=True)
 </s> add     aligned_tags = example.get_aligned("TAG", as_string=True) </s> remove     example = Example.from_dict(predicted, annots)
    aligned_tags = example.get_aligned("tag", as_string=True)
    assert aligned_tags == ["VERB", "DET", "NOUN", "SCONJ", "PRON", "VERB", "VERB"]
 </s> add     example1 = Example.from_dict(predicted, annots)
    aligned_tags1 = example1.get_aligned("TAG", as_string=True)
    assert aligned_tags1 == ["VERB", "DET", "NOUN", "SCONJ", "PRON", "VERB", "VERB"]
    # ensure that to_dict works correctly
    example2 = Example.from_dict(predicted, example1.to_dict())
    aligned_tags2 = example2.get_aligned("TAG", as_string=True)
    assert aligned_tags2 == ["VERB", "DET", "NOUN", "SCONJ", "PRON", "VERB", "VERB"]
            all_keys = set(remapping.values())
            all_keys.update(remapping.keys())
            raise KeyError(Errors.E983.format(key=key, dict="token_annotation", keys=all_keys))
              pass
          elif key.lower() in remapping:
              token_dict[remapping[key.lower()]] = value
          else:
            all_keys = set(remapping.values())
            all_keys.update(remapping.keys())
            raise KeyError(Errors.E983.format(key=key, dict="token_annotation", keys=all_keys))
      text = example_dict.get("text", example_dict.get("raw"))
      if _has_field(token_dict, "ORTH") and not _has_field(token_dict, "SPACY"):
          token_dict["SPACY"] = _guess_spaces(text, token_dict["ORTH"])
      if "HEAD" in token_dict and "SENT_START" in token_dict:
          # If heads are set, we don't also redundantly specify SENT_START.
keep keep keep keep replace keep keep keep keep keep
 Example Dict format consistency (#5858)

* consistently use upper-case IDS in token_annotation format and for get_aligned

* remove ID from to_dict (not used in from_dict either)

* fix test

Co-authored-by: Matthew Honnibal <honnibal+gh@gmail.com> 
spacy/gold/example.pyx