          for j, sent in enumerate(doc.sents):
              json_sent = {"tokens": [], "brackets": []}
              for token in sent:
                  json_token = {"id": token.i, "orth": token.text}
                  json_token["lemma"] = token.lemma_
                  if doc.is_tagged:
                      json_token["tag"] = token.tag_
                  if doc.is_parsed:
                      json_token["head"] = token.head.i-token.i
                      json_token["dep"] = token.dep_
 
</s> remove         morphs = []
        lemmas = []
 </s> add  </s> remove             if not heads:
                heads = [None for _ in words]
            if not deps:
                deps = [None for _ in words]
 </s> add             if not pos:
                pos = [None for _ in words] </s> remove         s_ids, s_words, s_tags, s_heads = [], [], [], []
        s_deps, s_ents, s_morphs, s_lemmas, s_sent_starts = [], [], [], [], []
 </s> add         s_ids, s_words, s_tags, s_pos, s_morphs = [], [], [], [], []
        s_lemmas, s_heads, s_deps, s_ents, s_sent_starts = [], [], [], [], []
          for j, sent in enumerate(doc.sents):
              json_sent = {"tokens": [], "brackets": []}
              for token in sent:
                  json_token = {"id": token.i, "orth": token.text}

                  if doc.is_tagged:
                      json_token["tag"] = token.tag_
                  if doc.is_parsed:
                      json_token["head"] = token.head.i-token.i
                      json_token["dep"] = token.dep_
keep keep keep keep replace keep keep keep keep keep
 Add support for pos/morphs/lemmas in training data (#4941)

Add support for pos/morphs/lemmas throughout `GoldParse`, `Example`, and
`docs_to_json()`. 
spacy/gold.pyx