          if key in ("text", "ids", "brackets"):
              pass
          elif key.lower() in remapping:
              token_dict[remapping[key.lower()]] = value
          else:
              all_keys = set(remapping.values())
              all_keys.update(remapping.keys())
 
</s> remove             raise KeyError(Errors.E983.format(key=key, dict="token_annotation", keys=remapping.keys()))
 </s> add             all_keys = set(remapping.values())
            all_keys.update(remapping.keys())
            raise KeyError(Errors.E983.format(key=key, dict="token_annotation", keys=all_keys)) </s> remove             for x in eg.get_aligned("sent_start"):
 </s> add             for x in eg.get_aligned("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     aligned_tags = example.get_aligned("tag", as_string=True)
 </s> add     aligned_tags = example.get_aligned("TAG", as_string=True) </s> remove                 "ids": [t.i+1 for t in self.reference],
                "words": [t.text for t in self.reference],
                "tags": [t.tag_ for t in self.reference],
                "lemmas": [t.lemma_ for t in self.reference],
                "pos": [t.pos_ for t in self.reference],
                "morphs": [t.morph_ for t in self.reference],
                "heads": [t.head.i for t in self.reference],
                "deps": [t.dep_ for t in self.reference],
                "sent_starts": [int(bool(t.is_sent_start)) for t in self.reference]
 </s> add                 "ORTH": [t.text for t in self.reference],
                "SPACY": [bool(t.whitespace_) for t in self.reference],
                "TAG": [t.tag_ for t in self.reference],
                "LEMMA": [t.lemma_ for t in self.reference],
                "POS": [t.pos_ for t in self.reference],
                "MORPH": [t.morph_ for t in self.reference],
                "HEAD": [t.head.i for t in self.reference],
                "DEP": [t.dep_ for t in self.reference],
                "SENT_START": [int(bool(t.is_sent_start)) for t in self.reference]
        elif key in remapping.values():
            token_dict[key] = value
          if key in ("text", "ids", "brackets"):
              pass
        elif key in remapping.values():
            token_dict[key] = value
          elif key.lower() in remapping:
              token_dict[remapping[key.lower()]] = value
          else:
              all_keys = set(remapping.values())
              all_keys.update(remapping.keys())
keep add 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