Пример #1
0
 def test_stem(self):
     assert_equal(normalize_token("fishes"), "fish")
     assert_equal(normalize_token("expense"), "expens")
     assert_equal(normalize_token("expenditure"), "expenditur")
Пример #2
0
 def test_no_change(self):
     assert_equal(normalize_token("fish"), "fish")
Пример #3
0
 def test_stem_exception(self):
     assert_equal(normalize_token("hospitality"), "hospitality")
Пример #4
0
 def test_stem_exception(self):
     assert_equal(normalize_token('hospitality'), 'hospitality')
Пример #5
0
 def test_stem(self):
     assert_equal(normalize_token('fishes'), 'fish')
     assert_equal(normalize_token('expense'), 'expens')
     assert_equal(normalize_token('expenditure'), 'expenditur')
Пример #6
0
 def test_no_change(self):
     assert_equal(normalize_token('fish'), 'fish')