MCPcopy Index your code
hub / github.com/clips/pattern / test_find_lemmata

Method test_find_lemmata

test/test_it.py:203–215  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

201 pass
202
203 def test_find_lemmata(self):
204 # Assert lemmata for nouns, adjectives, verbs and determiners.
205 v = it.parser.find_lemmata([
206 ["I", "DT"], ["gatti", "NNS"], ["neri", "JJ"],
207 ["seduti", "VB"], ["sul", "IN"], ["tatami", "NN"]])
208 self.assertEqual(v, [
209 ["I", "DT", "il"],
210 ["gatti", "NNS", "gatto"],
211 ["neri", "JJ", "nero"],
212 ["seduti", "VB", "sedutare"],
213 ["sul", "IN", "sul"],
214 ["tatami", "NN", "tatami"]])
215 print "pattern.it.parser.find_lemmata()"
216
217 def test_parse(self):
218 # Assert parsed output with Penn Treebank II tags (slash-formatted).

Callers

nothing calls this directly

Calls 1

find_lemmataMethod · 0.45

Tested by

no test coverage detected