1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!python3
# FRENCH DATA BUILDER
#
# by Olivier R.
# License: MPL 2
import json
import os
import itertools
import graphspell.ibdawg as ibdawg
from graphspell.echo import echo
from graphspell.str_transform import defineSuffixCode
import graphspell.tokenizer as tkz
|
>
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!python3
# FRENCH DATA BUILDER
#
# by Olivier R.
# License: MPL 2
import json
import os
import itertools
import traceback
import graphspell.ibdawg as ibdawg
from graphspell.echo import echo
from graphspell.str_transform import defineSuffixCode
import graphspell.tokenizer as tkz
|
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
|
def makePhonetTable (sp, bJS=False):
print("> Correspondances phonétiques ", end="")
print("(Python et JavaScript)" if bJS else "(Python seulement)")
import gc_lang.fr.modules.conj as conj
try:
oDict = ibdawg.IBDAWG("fr.bdic")
except:
traceback.print_exc()
return
# set of homophonic words
lSet = []
for sLine in readFile(sp+"/data/phonet_simil.txt"):
|
|
|
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
|
def makePhonetTable (sp, bJS=False):
print("> Correspondances phonétiques ", end="")
print("(Python et JavaScript)" if bJS else "(Python seulement)")
import gc_lang.fr.modules.conj as conj
try:
oDict = ibdawg.IBDAWG("fr-allvars.bdic")
except:
traceback.print_exc()
return
# set of homophonic words
lSet = []
for sLine in readFile(sp+"/data/phonet_simil.txt"):
|