Exemple #1
0
    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()
Exemple #2
0
    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()
Exemple #3
0
    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()
Exemple #4
0
 def init(self, options):
     # type: (Dict) -> None
     self.stemmer = get_stemmer()
Exemple #5
0
 def init(self, options: Dict) -> None:
     self.stemmer = get_stemmer()
Exemple #6
0
 def init(self, options):
     # type: (Dict) -> None
     self.stemmer = get_stemmer()