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