class_docstr: Parser evaluation 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: ["Parser","evaluation","context","window","This","is","a","context","window","which","keeps","a","process","open",".","Should","allow","for","multiple","requests","without","launching","new","java","processes","each","time","."]
code: def __init__(self, classpath=None, kbest=None, silent=False):
      if kbest is not None:
          extra_args = [
              "-evalPCFGkBest",
              "{}".format(kbest),
              "-evals",
              "pcfgTopK",
          ]
      else:
          extra_args = []
  
      if silent:
          extra_args.extend(["-evals", "summary=False"])
  
      super(EvaluateParser, self).__init__(
          classpath,
          EvaluateParserResponse,
          EVALUATE_JAVA,
          extra_args=extra_args,
      )
  
file_path: stanza/stanza/server/parser_eval.py
imports: from collections import namedtuple
  import sys
  import stanza
  from stanza.protobuf import EvaluateParserRequest, EvaluateParserResponse
  from stanza.server.java_protobuf_requests import send_request, build_tree, JavaProtobufContext
  from stanza.models.constituency.tree_reader import read_treebank
label_desc: Use image node_id 1 to create a new EvaluateParser object from inherited base classes: JavaProtobufContext with example: obj = EvaluateParser(classpath, kbest, silent)