Example #1
0
 def test_case(word, normal_form, tag, morph):
     parse = morph.parse(word)
     assert_parse_is_correct(parse, word, normal_form, tag)
Example #2
0
 def test_case(word, normal_form, tag, morph):
     parse = morph.parse(word)
     assert_parse_is_correct(parse, word, normal_form, tag)
Example #3
0
def _check_new_analyzer(parses):
    morph = pymorphy2.MorphAnalyzer()
    for word, normal_form, tag in parses:
        parse = morph.parse(word)
        assert_parse_is_correct(parse, word, normal_form, tag)
Example #4
0
def _create_morph_analyzer(i):
    morph = pymorphy2.MorphAnalyzer()
    word, normal_form, tag = random.choice(PARSES)
    parse = morph.parse(word)
    assert_parse_is_correct(parse, word, normal_form, tag)
Example #5
0
def _check_analyzer(morph, parses):
    for word, normal_form, tag in parses:
        parse = morph.parse(word)
        assert_parse_is_correct(parse, word, normal_form, tag)