(self)
| 106 | print "pattern.it.inflect.verbs.find_lemma()" |
| 107 | |
| 108 | def test_find_lexeme(self): |
| 109 | # Assert the accuracy of the verb conjugation algorithm. |
| 110 | i, n = 0, 0 |
| 111 | for v, lexeme1 in it.inflect.verbs.infinitives.items(): |
| 112 | lexeme2 = it.inflect.verbs.find_lexeme(v) |
| 113 | for j in range(len(lexeme2)): |
| 114 | if lexeme1[j] == lexeme2[j]: |
| 115 | i += 1 |
| 116 | n += 1 |
| 117 | self.assertTrue(float(i) / n > 0.89) |
| 118 | print "pattern.it.inflect.verbs.find_lexeme()" |
| 119 | |
| 120 | def test_conjugate(self): |
| 121 | # Assert different tenses with different conjugations. |
nothing calls this directly
no test coverage detected