                  locs.append(path)
          return locs
  
  
  def read_json_file(loc, docs_filter=None, limit=None):
      loc = ensure_path(loc)
      if loc.is_dir():
          for filename in loc.iterdir():
              yield from read_json_file(loc / filename, limit=limit)
      else:
 
</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         tuples = nonproj.PseudoProjectivity.preprocess_training_data(tuples)
 </s> add  </s> remove             gold.heads, gold.labels = PseudoProjectivity.projectivize(
                                        gold.heads, gold.labels)
 </s> add  </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:
def read_json_file(loc, docs_filter=None, limit=1000):
                  locs.append(path)
          return locs
  
  
def read_json_file(loc, docs_filter=None, limit=1000):
      loc = ensure_path(loc)
      if loc.is_dir():
          for filename in loc.iterdir():
              yield from read_json_file(loc / filename, limit=limit)
      else:
keep keep keep keep replace keep keep keep keep keep
 Fix handling of non-projective deps 
spacy/gold.pyx