class_docstr: Semgrex context window
  
  This is a context window which keeps a process open.  Should allow
  for multiple requests without launching new java processes each time.
class_docstr_tok: ["Semgrex","context","window","This","is","a","context","window","which","keeps","a","process","open",".","Should","allow","for","multiple","requests","without","launching","new","java","processes","each","time","."]
docstr: Apply each of the semgrex patterns to each of the dependency trees in doc
docstr_tok: ["Apply","each","of","the","semgrex","patterns","to","each","of","the","dependency","trees","in","doc"]
code: def process(self, doc, *semgrex_patterns):
      """
      Apply each of the semgrex patterns to each of the dependency trees in doc
      """
      request = build_request(doc, semgrex_patterns)
      return self.process_request(request)
  
file_path: stanza/stanza/server/semgrex.py
imports: import argparse
  import copy
  import stanza
  from stanza.protobuf import SemgrexRequest, SemgrexResponse
  from stanza.server.java_protobuf_requests import send_request, add_token, add_word_to_graph, JavaProtobufContext, convert_networkx_graph
  from stanza.utils.conll import CoNLL
label_desc: Use image node_id 2 for calling the Semgrex obj's underlying member method code with example usage: obj.process(doc) and returns: self