56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
-
-
-
-
+
+
+
+
|
def test_suggest (self):
for sWord in [
"déelirranttesss", "vallidasion", "Emilie", "exibission", "ditirembique", "jai", "email",
"fatiqué", "coeur", "trèèèèèèèèès", "vraaaaiiiimeeeeennnt", "apele", "Co2",
"emmppâiiiller", "testt", "apelaion", "exsepttion", "sintaxik", "ebriete", "ennormmement"
]:
for lSugg in self.oSpellChecker.suggest(sWord):
self.assertTrue(len(lSugg) > 0)
#with timeblock(sWord):
# aSugg = self.oSpellChecker.suggest(sWord)
# print(sWord, "->", " ".join(aSugg))
for lSugg in self.oSpellChecker.suggest(sWord):
#print(sWord, "->", " ".join(lSugg))
self.assertTrue(len(lSugg) > 0)
def test_lemmas (self):
for sWord, sInfi in [
("suis", "suivre"),
("suis", "être"),
("a", "avoir"),
("a", "a"),
|