Exemplo n.º 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()
Exemplo n.º 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()
Exemplo n.º 3
0
Arquivo: zh.py Projeto: ezc/sphinx-1
    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()
Exemplo n.º 4
0
 def init(self, options):
     # type: (Dict) -> None
     self.stemmer = get_stemmer()
Exemplo n.º 5
0
 def init(self, options: Dict) -> None:
     self.stemmer = get_stemmer()
Exemplo n.º 6
0
 def init(self, options):
     # type: (Dict) -> None
     self.stemmer = get_stemmer()