(self)
| 188 | pass |
| 189 | |
| 190 | def test_find_lemmata(self): |
| 191 | # Assert lemmata for nouns, adjectives, verbs and determiners. |
| 192 | v = es.parser.find_lemmata([ |
| 193 | ["Los", "DT"], ["gatos", "NNS"], [u"negros", "JJ"], ["se", "PRP"], [u"sentó", "VB"], |
| 194 | ["en", "IN"], ["la", "DT"], ["alfombra", "NN"]]) |
| 195 | self.assertEqual(v, [ |
| 196 | ["Los", "DT", "el"], |
| 197 | ["gatos", "NNS", "gato"], |
| 198 | ["negros", "JJ", "negro"], |
| 199 | ["se", "PRP", "se"], |
| 200 | [u"sentó", "VB", "sentar"], |
| 201 | ["en", "IN", "en"], |
| 202 | ["la", "DT", "el"], |
| 203 | ["alfombra", "NN", "alfombra"]]) |
| 204 | print "pattern.es.parser.find_lemmata()" |
| 205 | |
| 206 | def test_parse(self): |
| 207 | # Assert parsed output with Penn Treebank II tags (slash-formatted). |
nothing calls this directly
no test coverage detected