class_docstr: Text Processor class implement NER, POS tag, lexical tree parsing.
  EnProcessor is designed by single instance mode.
docstr: Lexical tree parsing function based on NLTK toolkit.
  
  Example::
  
      EnProcessor().get_parser('Messi is a football player.')
  
      >>'(ROOT\n  (S\n    (NP (NNP Messi))\n    (VP (VBZ is) (NP (DT a)
      (NN football) (NN player)))\n    (. .)))'
  
  
  :param str|list sentence: A sentence needs to be parsed.
  :return:The result tree of lexicalized parser in string format.
docstr_tok: ["Lexical","tree","parsing","function","based","on","NLTK","toolkit",".","Example",":",":","EnProcessor","(",")",".get_parser","(","'Messi","is","a","football","player",".","'",")",">",">","'","(","ROOT\\n","(","S\\n","(","NP","(","NNP","Messi",")",")","\\n","(","VP","(","VBZ","is",")","(","NP","(","DT","a",")","(","NN","football",")","(","NN","player",")",")",")","\\n","(",".",".",")",")",")","'",":","param","str|list","sentence",":","A","sentence","needs","to","be","parsed",".",":","return",":","The","result","tree","of","lexicalized","parser","in","string","format","."]
code: def get_parser(self, sentence):
      r"""
      Lexical tree parsing function based on NLTK toolkit.
  
      Example::
  
          EnProcessor().get_parser('Messi is a football player.')
  
          >>'(ROOT\n  (S\n    (NP (NNP Messi))\n    (VP (VBZ is) (NP (DT a)
          (NN football) (NN player)))\n    (. .)))'
  
  
      :param str|list sentence: A sentence needs to be parsed.
      :return:The result tree of lexicalized parser in string format.
  
      """
      self.check_initialized()
  
      if self.__parser is None:
          self.__parser = self.model_manager.load(CFG_PARSER)
  
      if not isinstance(sentence, (str, list)):
          raise ValueError(
              "Support string or token list input, while your "
              "input type is {0}".format(type(sentence))
          )
      elif sentence in ["", []]:
          return ""
  
      sentence = (
          self.inverse_tokenize(sentence)
          if isinstance(sentence, list)
          else sentence
      )  # concatenate tokens
  
      return str(list(self.__parser(sentence))[0])
  
imports: import re
  import nltk
  import spacy
  import threading
  from functools import reduce
  from spacy.tokens import Doc
  from .nltk_res_load import *
  from ..settings import *
label_desc: Use image node_id 12 for calling the EnProcessor obj's underlying member method code with example usage: obj.get_parser(sentence) and returns: str, str