示例#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')