class_docstr: Chinese Text Processor class
class_docstr_tok: ["Chinese","Text","Processor","class"]
code: def get_synonym(self, word, n):
      import random
  
      if self.__synonym_dict is None:
          self.generate_synonym_dict(
              download_if_needed(CN_SYNONYM_PATH)
          )
      return random.sample(
          list(self.__synonym_dict[word]),
          min(n, len(list(self.__synonym_dict[word]))),
      )
  
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 11 for calling the CnProcessor obj's underlying member method code with example usage: obj.get_synonym(word, n) and returns: random