Example #1
0
 def test_changed_special(self):
     """
     wordnet doesn't correctly normalize ('felt', 'VBD')
     because there's a verb 'felt' and wordnet doesn't
     understand that it's 'feel' in past tense
     normalize function has a workaround for this case
     """
     self.assertEqual(normalize(('felt', 'VBD')), 'feel')
Example #2
0
 def test_changed(self):
     self.assertEqual(normalize(('going', 'VBG')), 'go')
Example #3
0
 def test_unchanged(self):
     self.assertEqual(normalize(('tree', 'NN')), 'tree')