              if on_match is not None:
                  on_match(self, doc, i, matches)
          return matches
  
      def pipe(self, stream, batch_size=1000, n_threads=2):
          """Match a stream of documents, yielding them in turn.
  
          docs (iterable): A stream of documents.
          batch_size (int): Number of documents to accumulate into a working set.
          n_threads (int): The number of threads with which to work on the buffer
 
</s> remove         for doc in stream:
            self(doc)
            yield doc
 </s> add         if as_tuples:
            for doc, context in stream:
                matches = self(doc)
                if return_matches:
                    yield ((doc, matches), context)
                else:
                    yield (doc, context)
        else:
            for doc in stream:
                matches = self(doc)
                if return_matches:
                    yield (doc, matches) 
                else:
                    yield doc </s> remove         if make_projective:
            proj_heads, _ = nonproj.projectivize(self.heads, self.labels)
            self.heads = proj_heads

 </s> add  </s> remove 
    def _init_gold_batch(self, whole_docs, whole_golds):
 </s> add     def _init_gold_batch(self, whole_docs, whole_golds, min_length=5, max_length=500): </s> remove def merge_phrase(matcher, doc, i, matches):
    """Callback to merge a phrase on match."""
    ent_id, label, start, end = matches[i]
    span = doc[start:end]
    span.merge(ent_type=label, ent_id=ent_id)


def unpickle_matcher(vocab, patterns, callbacks):
    matcher = Matcher(vocab)
    for key, specs in patterns.items():
        callback = callbacks.get(key, None)
        matcher.add(key, callback, *specs)
    return matcher


 </s> add 
    def pipe(self, stream, batch_size=1000, n_threads=2, return_matches=False,
             as_tuples=False):
              if on_match is not None:
                  on_match(self, doc, i, matches)
          return matches
  
    def pipe(self, stream, batch_size=1000, n_threads=2, return_matches=False,
             as_tuples=False):
          """Match a stream of documents, yielding them in turn.
  
          docs (iterable): A stream of documents.
          batch_size (int): Number of documents to accumulate into a working set.
          n_threads (int): The number of threads with which to work on the buffer
keep keep keep keep replace keep keep keep keep keep
 Revert "Merge branch 'develop' of https://github.com/explosion/spaCy into develop"

This reverts commit c9ba3d3c2dc7067cf8bd55f878cec45a8c6d73d4, reversing
changes made to 92c26a35d425d4e8ca1b805ea776ea10f5ded3df. 
spacy/matcher.pyx