class_docstr: Context window for the dependency converter
  
  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: ["Context","window","for","the","dependency","converter","This","is","a","context","window","which","keeps","a","process","open",".","Should","allow","for","multiple","requests","without","launching","new","java","processes","each","time","."]
docstr: Converts a constituency tree to dependency trees for each of the sentences in the document
docstr_tok: ["Converts","a","constituency","tree","to","dependency","trees","for","each","of","the","sentences","in","the","document"]
code: def process(self, doc):
      """
      Converts a constituency tree to dependency trees for each of the sentences in the document
      """
      request = build_request(doc)
      response = self.process_request(request)
      attach_dependencies(doc, response)
      return doc
  
file_path: stanza/stanza/server/dependency_converter.py
imports: import stanza
  from stanza.protobuf import DependencyConverterRequest, DependencyConverterResponse
  from stanza.server.java_protobuf_requests import send_request, build_tree, JavaProtobufContext
label_desc: Use image node_id 2 for calling the DependencyConverter obj's underlying member method code with example usage: obj.process(doc) and returns: doc