code: def __CompileUserdict(self):
          
          path_mecab_dict = self.__check_mecab_dict_path()
          path_mecab_libexe = self.__check_mecab_libexe()
  
          cmCompileDict = u'{0}/mecab-dict-index -d {1}/ipadic -u {2} -f utf-8 -t utf-8 {3} > /dev/null'.format(path_mecab_libexe,
                                                                                                              path_mecab_dict,
                                                                                                              self._pathUserDictCsv.replace("csv", "dict"),
                                                                                                              self._pathUserDictCsv)
          logger.debug(msg="compiling mecab user dictionary with: {}".format(cmCompileDict))
          try:
              subprocess.call( cmCompileDict , shell=True )
          except OSError as e:
              logger.error('type:' + str(type(e)))
              logger.error('args:' + str(e.args))
              sys.exit('Failed to compile mecab userdict. System ends')
  
          return self._pathUserDictCsv.replace("csv", "dict")
docs: * What you can do