class_docstr: Interface to the Stanford Parser
class_docstr_tok: ["Interface","to","the","Stanford","Parser"]
code: def __init__(
      self,
      path_to_jar=None,
      path_to_models_jar=None,
      model_path="edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz",
      encoding="utf8",
      verbose=False,
      java_options="-mx4g",
      corenlp_options="",
  ):
      # find the most recent code and model jar
      stanford_jar = max(
          find_jar_iter(
              self._JAR,
              path_to_jar,
              env_vars=("STANFORD_PARSER", "STANFORD_CORENLP"),
              searchpath=(),
              url=_stanford_url,
              verbose=verbose,
              is_regex=True,
          ),
          key=lambda model_path: os.path.dirname(model_path),
      )
  
      model_jar = max(
          find_jar_iter(
              self._MODEL_JAR_PATTERN,
              path_to_models_jar,
              env_vars=("STANFORD_MODELS", "STANFORD_CORENLP"),
              searchpath=(),
              url=_stanford_url,
              verbose=verbose,
              is_regex=True,
          ),
          key=lambda model_path: os.path.dirname(model_path),
      )
  
      # self._classpath = (stanford_jar, model_jar)
  
      # Adding logging jar files to classpath
      stanford_dir = os.path.split(stanford_jar)[0]
      self._classpath = tuple(
          [model_jar] + find_jars_within_path(stanford_dir)
      )
  
      self.model_path = model_path
      self._encoding = encoding
      self.corenlp_options = corenlp_options
      self.java_options = java_options
  
imports: import os
  import tempfile
  import warnings
  from subprocess import PIPE
  from nltk.internals import _java_options, config_java, find_jar_iter, find_jars_within_path, java
  from nltk.parse.api import ParserI
  from nltk.parse.dependencygraph import DependencyGraph
  from nltk.tree import Tree
label_desc: Use image node_id 1 to create a new GenericStanfordParser object from inherited base classes: ParserI with example: obj = GenericStanfordParser(path_to_jar, path_to_models_jar, model_path, encoding, verbose, java_options, corenlp_options)