          if self.words:
              ids = list(range(len(self.words)))
  
          return TokenAnnotation(ids=ids, words=self.words, tags=self.tags,
                                 heads=self.heads, deps=self.labels,
                                 entities=self.ner, morphs=self.morphs,
                                 sent_starts=self.sent_starts, lemmas=self.lemmas)
  
      def __init__(self, doc, words=None, tags=None, morphs=None, lemmas=None,
                   sent_starts=None, heads=None, deps=None, entities=None,
                   make_projective=False, cats=None, links=None):
          """Create a GoldParse. The fields will not be initialized if len(doc) is zero.
  
          doc (Doc): The document the annotations refer to.
          words (iterable): A sequence of unicode word strings.
          tags (iterable): A sequence of strings, representing tag annotations.
 
</s> remove     def __init__(self, ids=None, words=None, tags=None, heads=None, deps=None,
            entities=None, morphs=None, lemmas=None, sent_starts=None,
 </s> add     def __init__(self, ids=None, words=None, tags=None, pos=None, morphs=None,
            lemmas=None, heads=None, deps=None, entities=None, sent_starts=None, </s> remove     def set_token_annotation(self, ids=None, words=None, tags=None, heads=None,
                             deps=None, entities=None, morphs=None, lemmas=None,
                             sent_starts=None, brackets=None):
 </s> add     def set_token_annotation(self, ids=None, words=None, tags=None, pos=None,
                             morphs=None, lemmas=None, heads=None, deps=None,
                             entities=None, sent_starts=None, brackets=None): </s> remove                             heads=heads, deps=deps, entities=entities,
                            morphs=morphs, lemmas=lemmas,
 </s> add                             pos=pos, morphs=morphs, lemmas=lemmas, heads=heads,
                            deps=deps, entities=entities, </s> remove             self.morphs = [None] * len(doc)
            self.lemmas = [None] * len(doc)
 </s> add 
                               pos=self.pos, morphs=self.morphs,
                               lemmas=self.lemmas, heads=self.heads,
                               deps=self.labels, entities=self.ner,
                               sent_starts=self.sent_starts)

    def __init__(self, doc, words=None, tags=None, pos=None, morphs=None,
                 lemmas=None, heads=None, deps=None, entities=None,
                 sent_starts=None, make_projective=False, cats=None,
                 links=None):
          if self.words:
              ids = list(range(len(self.words)))
  
          return TokenAnnotation(ids=ids, words=self.words, tags=self.tags,
                               pos=self.pos, morphs=self.morphs,
                               lemmas=self.lemmas, heads=self.heads,
                               deps=self.labels, entities=self.ner,
                               sent_starts=self.sent_starts)

    def __init__(self, doc, words=None, tags=None, pos=None, morphs=None,
                 lemmas=None, heads=None, deps=None, entities=None,
                 sent_starts=None, make_projective=False, cats=None,
                 links=None):
                               pos=self.pos, morphs=self.morphs,
                               lemmas=self.lemmas, heads=self.heads,
                               deps=self.labels, entities=self.ner,
                               sent_starts=self.sent_starts)

    def __init__(self, doc, words=None, tags=None, pos=None, morphs=None,
                 lemmas=None, heads=None, deps=None, entities=None,
                 sent_starts=None, make_projective=False, cats=None,
                 links=None):
                               pos=self.pos, morphs=self.morphs,
                               lemmas=self.lemmas, heads=self.heads,
                               deps=self.labels, entities=self.ner,
                               sent_starts=self.sent_starts)

    def __init__(self, doc, words=None, tags=None, pos=None, morphs=None,
                 lemmas=None, heads=None, deps=None, entities=None,
                 sent_starts=None, make_projective=False, cats=None,
                 links=None):
                               pos=self.pos, morphs=self.morphs,
                               lemmas=self.lemmas, heads=self.heads,
                               deps=self.labels, entities=self.ner,
                               sent_starts=self.sent_starts)

    def __init__(self, doc, words=None, tags=None, pos=None, morphs=None,
                 lemmas=None, heads=None, deps=None, entities=None,
                 sent_starts=None, make_projective=False, cats=None,
                 links=None):
                               pos=self.pos, morphs=self.morphs,
                               lemmas=self.lemmas, heads=self.heads,
                               deps=self.labels, entities=self.ner,
                               sent_starts=self.sent_starts)

    def __init__(self, doc, words=None, tags=None, pos=None, morphs=None,
                 lemmas=None, heads=None, deps=None, entities=None,
                 sent_starts=None, make_projective=False, cats=None,
                 links=None):
                               pos=self.pos, morphs=self.morphs,
                               lemmas=self.lemmas, heads=self.heads,
                               deps=self.labels, entities=self.ner,
                               sent_starts=self.sent_starts)

    def __init__(self, doc, words=None, tags=None, pos=None, morphs=None,
                 lemmas=None, heads=None, deps=None, entities=None,
                 sent_starts=None, make_projective=False, cats=None,
                 links=None):
                               pos=self.pos, morphs=self.morphs,
                               lemmas=self.lemmas, heads=self.heads,
                               deps=self.labels, entities=self.ner,
                               sent_starts=self.sent_starts)

    def __init__(self, doc, words=None, tags=None, pos=None, morphs=None,
                 lemmas=None, heads=None, deps=None, entities=None,
                 sent_starts=None, make_projective=False, cats=None,
                 links=None):
          """Create a GoldParse. The fields will not be initialized if len(doc) is zero.
  
          doc (Doc): The document the annotations refer to.
          words (iterable): A sequence of unicode word strings.
          tags (iterable): A sequence of strings, representing tag annotations.
keep keep keep keep replace replace replace replace replace replace 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