              self.model = self.Model(self.moves.n_moves, **cfg)
  
      def preprocess_gold(self, docs_golds):
          for doc, gold in docs_golds:
              gold.heads, gold.labels = PseudoProjectivity.projectivize(
                                          gold.heads, gold.labels)
              yield doc, gold
  
      def use_params(self, params):
          # Can't decorate cdef class :(. Workaround.
          with self.model[0].use_params(params):
 
</s> remove         tuples = nonproj.PseudoProjectivity.preprocess_training_data(tuples)
 </s> add  </s> remove def read_json_file(loc, docs_filter=None, limit=None):
 </s> add def read_json_file(loc, docs_filter=None, limit=1000): </s> remove     def train_docs(self, nlp, shuffle=0, gold_preproc=True):
 </s> add     def train_docs(self, nlp, shuffle=0, gold_preproc=True,
                   projectivize=False): </s> remove         gold_docs = self.iter_gold_docs(nlp, self.train_tuples, gold_preproc)
 </s> add         if projectivize:
            train_tuples = nonproj.PseudoProjectivity.preprocess_training_data(
                               self.train_tuples)
        gold_docs = self.iter_gold_docs(nlp, train_tuples, gold_preproc) </s> remove         while todo:
 </s> add         while len(todo) >= 3:
              self.model = self.Model(self.moves.n_moves, **cfg)
  
      def preprocess_gold(self, docs_golds):
          for doc, gold in docs_golds:


              yield doc, gold
  
      def use_params(self, params):
          # Can't decorate cdef class :(. Workaround.
          with self.model[0].use_params(params):
keep keep keep keep replace replace keep keep keep keep keep
 Fix handling of non-projective deps 
spacy/syntax/nn_parser.pyx