class_docstr: Interface to the CoreNLP Parser.
code: def api_call(self, data, properties=None, timeout=60):
      default_properties = {
          "outputFormat": "json",
          "annotators": "tokenize,pos,lemma,ssplit,{parser_annotator}".format(
              parser_annotator=self.parser_annotator
          ),
      }
  
      default_properties.update(properties or {})
  
      response = self.session.post(
          self.url,
          params={"properties": json.dumps(default_properties)},
          data=data.encode(self.encoding),
          headers={
              "Content-Type": f"text/plain; charset={self.encoding}"
          },
          timeout=timeout,
      )
  
      response.raise_for_status()
  
      return response.json(strict=self.strict_json)
  
imports: import json
  import os
  import re
  import socket
  import time
  from typing import List, Tuple
  from nltk.internals import _java_options, config_java, find_jar_iter, java
  from nltk.parse.api import ParserI
  from nltk.parse.dependencygraph import DependencyGraph
  from nltk.tag.api import TaggerI
  from nltk.tokenize.api import TokenizerI
  from nltk.tree import Tree
label_desc: Use image node_id 4 for calling the GenericCoreNLPParser obj's underlying member method code with example usage: obj.api_call(data, properties, timeout) and returns: response