class_docstr: Chinese Text Processor class
class_docstr_tok: ["Chinese","Text","Processor","class"]
docstr: dependency parsing function.
  :param str sentence: the sentence need to be parsed
  :return: the list of triple form
docstr_tok: ["dependency","parsing","function",".",":","param","str","sentence",":","the","sentence","need","to","be","parsed",":","return",":","the","list","of","triple","form"]
code: def get_dp(self, sentence):
      r"""
      dependency parsing function.
      :param str sentence: the sentence need to be parsed
      :return: the list of triple form
      """
      assert isinstance(sentence, (list, str))
      from ltp import LTP
  
      if isinstance(sentence, list):
          # Turn the list into sentence
          tmp = ""
          for word in sentence:
              tmp += word
          sentence = tmp
      if not sentence:
          return []
  
      if self.__dp is None:
          self.__dp = LTP()
      seg, hidden = self.__dp.seg([sentence])
      dp = self.__dp.dep(hidden)
      return dp[0]
  
file_path: textflint/textflint/common/preprocess/cn_processor.py
imports: import threading
  from ..settings import CN_SYNONYM_PATH, CN_ANTONYM_PATH
  from ..utils.install import download_if_needed
label_desc: Use image node_id 6 for calling the CnProcessor obj's underlying member method code with example usage: obj.get_dp(sentence) and returns: dp, list