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

Method test_find_lemma

test/test_es.py:78–86  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

76 print "pattern.es.predicative()"
77
78 def test_find_lemma(self):
79 # Assert the accuracy of the verb lemmatization algorithm.
80 i, n = 0, 0
81 for v1, v2 in es.inflect.verbs.inflections.items():
82 if es.inflect.verbs.find_lemma(v1) == v2:
83 i += 1
84 n += 1
85 self.assertTrue(float(i) / n > 0.80)
86 print "pattern.es.inflect.verbs.find_lemma()"
87
88 def test_find_lexeme(self):
89 # Assert the accuracy of the verb conjugation algorithm.

Callers

nothing calls this directly

Calls 2

itemsMethod · 0.45
find_lemmaMethod · 0.45

Tested by

no test coverage detected