예제 #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()
예제 #2
0
파일: zh.py 프로젝트: jdemeyer/sphinx
    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()
예제 #3
0
파일: zh.py 프로젝트: 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()
예제 #4
0
파일: en.py 프로젝트: e2designs/sphinx
 def init(self, options):
     # type: (Dict) -> None
     self.stemmer = get_stemmer()
예제 #5
0
 def init(self, options: Dict) -> None:
     self.stemmer = get_stemmer()
예제 #6
0
파일: en.py 프로젝트: lmregus/Portfolio
 def init(self, options):
     # type: (Dict) -> None
     self.stemmer = get_stemmer()