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