198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
|
aMorph.append( "{} : inconnu du dictionnaire".format(sWord) )
# suffixe d’un mot composé
if m2:
aMorph.append( "-{} : {}".format(m2.group(2), self._formatSuffix(m2.group(2).lower())) )
# Verbes
aVerb = { s[1:s.find("/")] for s in lMorph if ":V" in s }
return (aMorph, aVerb)
except:
traceback.print_exc()
return (["#erreur"], None)
def formatTags (self, sTags):
"returns string: readable tags"
sRes = ""
sTags = re.sub("(?<=V[1-3])[itpqnmr_eaxz]+", "", sTags)
|
|
|
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
|
aMorph.append( "{} : inconnu du dictionnaire".format(sWord) )
# suffixe d’un mot composé
if m2:
aMorph.append( "-{} : {}".format(m2.group(2), self._formatSuffix(m2.group(2).lower())) )
# Verbes
aVerb = { s[1:s.find("/")] for s in lMorph if ":V" in s }
return (aMorph, aVerb)
except (IndexError, TypeError):
traceback.print_exc()
return (["#erreur"], None)
def formatTags (self, sTags):
"returns string: readable tags"
sRes = ""
sTags = re.sub("(?<=V[1-3])[itpqnmr_eaxz]+", "", sTags)
|