예제 #1
0
 def _get_lexeme(self, form, base_analyzer, this_method):
     lexemizer = self.lexemizer(form, this_method)
     form = without_last_method(next(lexemizer))
     lexeme = lexemizer.send(base_analyzer.get_lexeme(form))
     return [append_method(f, this_method) for f in lexeme]
예제 #2
0
파일: base.py 프로젝트: Rogaven/pymorphy2
 def _get_lexeme(self, form, base_analyzer, this_method):
     lexemizer = self.lexemizer(form, this_method)
     form = without_last_method(next(lexemizer))
     lexeme = lexemizer.send(base_analyzer.get_lexeme(form))
     return [append_method(f, this_method) for f in lexeme]
예제 #3
0
    def _normalized(self, form, base_analyzer, this_method):
        normalizer = self.normalizer(form, this_method)

        form = without_last_method(next(normalizer))
        normal_form = normalizer.send(base_analyzer.normalized(form))
        return append_method(normal_form, this_method)
예제 #4
0
파일: base.py 프로젝트: Rogaven/pymorphy2
    def _normalized(self, form, base_analyzer, this_method):
        normalizer = self.normalizer(form, this_method)

        form = without_last_method(next(normalizer))
        normal_form = normalizer.send(base_analyzer.normalized(form))
        return append_method(normal_form, this_method)