def init(self, options: Dict) -> None: if JIEBA: dict_path = options.get('dict') if dict_path and os.path.isfile(dict_path): jieba.load_userdict(dict_path) self.stemmer = get_stemmer()
def init(self, options): # type: (Dict) -> None if JIEBA: dict_path = options.get('dict') if dict_path and os.path.isfile(dict_path): jieba.load_userdict(dict_path) self.stemmer = get_stemmer()
def init(self, options): # type: (Dict) -> None if JIEBA: dict_path = options.get('dict') if dict_path and os.path.isfile(dict_path): jieba.set_dictionary(dict_path) self.stemmer = get_stemmer()
def init(self, options): # type: (Dict) -> None self.stemmer = get_stemmer()
def init(self, options: Dict) -> None: self.stemmer = get_stemmer()
def init(self, options): # type: (Dict) -> None self.stemmer = get_stemmer()