      gold_tags = ["VERB", "DET", "NOUN", "NOUN", "SCONJ", "PRON", "VERB"]
      annots = {"words": gold_words, "tags": gold_tags}
      vocab = Vocab()
      predicted = Doc(vocab, words=pred_words)
      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"]
  
  
  def test_aligned_tags_multi():
      pred_words = ["Applysome", "sunscreen", "unless", "you", "can", "not"]
      gold_words = ["Apply", "somesun", "screen", "unless", "you", "cannot"]
 
</s> remove     aligned_tags = example.get_aligned("tag", as_string=True)
 </s> add     aligned_tags = example.get_aligned("TAG", as_string=True) </s> remove     aligned_tags = example.get_aligned("tag", as_string=True)
 </s> add     aligned_tags = example.get_aligned("TAG", as_string=True) </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"):
    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"]
      gold_tags = ["VERB", "DET", "NOUN", "NOUN", "SCONJ", "PRON", "VERB"]
      annots = {"words": gold_words, "tags": gold_tags}
      vocab = Vocab()
      predicted = Doc(vocab, words=pred_words)
    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"]
    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"]
    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"]
  
  
  def test_aligned_tags_multi():
      pred_words = ["Applysome", "sunscreen", "unless", "you", "can", "not"]
      gold_words = ["Apply", "somesun", "screen", "unless", "you", "cannot"]
keep keep keep keep replace replace 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/tests/test_new_example.py