Grammalecte  Check-in [522a9321ac]

Overview
Comment:[build][fr] fix tests
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | build
Files: files | file ages | folders
SHA3-256: 522a9321ac64b68e55cfca509220f5509bc711cea52c5367c90a4dfcc641e92a
User & Date: olr on 2017-06-23 23:33:42
Other Links: manifest | tags
Context
2017-06-24
04:57
[fr][bug] phonet: hasSimil & getSimil check-in: 13772ea91b user: olr tags: trunk, fr
2017-06-23
23:33
[build][fr] fix tests check-in: 522a9321ac user: olr tags: trunk, build
23:23
[fr] phonet_simil: simplification des lignes contenant des verbes du 1ᵉʳ groupe à l’infinitif check-in: a1812bdacc user: olr tags: trunk, fr
Changes

Modified gc_lang/fr/build_data.py from [89b72162ae] to [34a6d30bf3].

272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
            if not sLine.startswith("#") and sLine.strip():
                lWord = sLine.strip().split()
                aMore = set()
                for sWord in lWord:
                    if sWord.endswith("er") and conj.isVerb(sWord):
                        aMore = aMore.union(conj.getConjSimilInfiV1(sWord))
                lWord.extend(list(aMore))
                lSet.append(lWord)
                #print(lWord)
        # dictionary of words
        dWord = {}
        for i, aSet in enumerate(lSet):
            for sWord in aSet:
                if oDict.lookup(sWord):
                    dWord[sWord] = i  # warning, what if word in several sets?
                else:







|
|







272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
            if not sLine.startswith("#") and sLine.strip():
                lWord = sLine.strip().split()
                aMore = set()
                for sWord in lWord:
                    if sWord.endswith("er") and conj.isVerb(sWord):
                        aMore = aMore.union(conj.getConjSimilInfiV1(sWord))
                lWord.extend(list(aMore))
                lSet.append(sorted(set(lWord)))
                print(lWord)
        # dictionary of words
        dWord = {}
        for i, aSet in enumerate(lSet):
            for sWord in aSet:
                if oDict.lookup(sWord):
                    dWord[sWord] = i  # warning, what if word in several sets?
                else:

Modified gc_lang/fr/data/phonet_simil.txt from [063ffe005c] to [b247659655].

1


2
3
4
5
6
7
8
# Homophonies



# Envisager les automatismes suivants:
# V1: présent 3pl -> nom /adj /3sg (accrochent accroche) (alternent alterne)
# V1: infinitif -> nom pl (boucher bouchers)
# V1: infinitif+imparfait -> nom /ppas (accusée accusées accuser accusés accusez)
# V1: 1pl -> nom (aiguillon aiguillons)
# V2: présent 3sg -> nom /ppas (abrutie abruties abrutis abrutit)

>
>







1
2
3
4
5
6
7
8
9
10
# Homophonies

# Si un verbe du 1ᵉʳ groupe à l’infinitif est présent, toutes ses formes conjuguées homophones seront ajoutées.

# Envisager les automatismes suivants:
# V1: présent 3pl -> nom /adj /3sg (accrochent accroche) (alternent alterne)
# V1: infinitif -> nom pl (boucher bouchers)
# V1: infinitif+imparfait -> nom /ppas (accusée accusées accuser accusés accusez)
# V1: 1pl -> nom (aiguillon aiguillons)
# V2: présent 3sg -> nom /ppas (abrutie abruties abrutis abrutit)

Modified gc_lang/fr/modules/phonet_data.py from [36387abf6b] to [65eab1c8fc].

cannot compute difference between binary files

Modified gc_lang/fr/modules/tests.py from [43f5975205] to [78ace698ff].

72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
    def setUpClass (cls):
        cls.lSet = [
            ["ce", "se"],
            ["ces", "ses", "sais", "sait"],
            ["cet", "cette", "sept", "set", "sets"],
            ["dé", "dés", "dès", "dais", "des"],
            ["don", "dons", "dont"],
            ["été", "étais", "était", "étai", "étés", "étaient"],
            ["faire", "fer", "fers", "ferre", "ferres", "ferrent"],
            ["fois", "foi", "foie", "foies"],
            ["la", "là", "las"],
            ["mes", "mets", "met", "mai", "mais"],
            ["mon", "mont", "monts"],
            ["mot", "mots", "maux"],
            ["moi", "mois"],
            ["notre", "nôtre", "nôtres"],
            ["or", "ors", "hors"],
            ["hou", "houe", "houes", "ou", "où", "houx"],
            ["peu", "peux", "peut"],
            ["ses", "ces", "sais", "sait"],
            ["son", "sons", "sont"],
            ["tes", "taie", "taies", "thé", "thés"],
            ["toi", "toit", "toits"],
            ["ton", "tons", "thon", "thons", "tond", "tonds"],
            ["voir", "voire"]
        ]

    def test_getsimil (self):
        for aSet in self.lSet:







|













|







72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
    def setUpClass (cls):
        cls.lSet = [
            ["ce", "se"],
            ["ces", "ses", "sais", "sait"],
            ["cet", "cette", "sept", "set", "sets"],
            ["dé", "dés", "dès", "dais", "des"],
            ["don", "dons", "dont"],
            ["été", "étaie", "étaies", "étais", "était", "étai", "étés", "étaient"],
            ["faire", "fer", "fers", "ferre", "ferres", "ferrent"],
            ["fois", "foi", "foie", "foies"],
            ["la", "là", "las"],
            ["mes", "mets", "met", "mai", "mais"],
            ["mon", "mont", "monts"],
            ["mot", "mots", "maux"],
            ["moi", "mois"],
            ["notre", "nôtre", "nôtres"],
            ["or", "ors", "hors"],
            ["hou", "houe", "houes", "ou", "où", "houx"],
            ["peu", "peux", "peut"],
            ["ses", "ces", "sais", "sait"],
            ["son", "sons", "sont"],
            ["tes", "tais", "tait", "taie", "taies", "thé", "thés"],
            ["toi", "toit", "toits"],
            ["ton", "tons", "thon", "thons", "tond", "tonds"],
            ["voir", "voire"]
        ]

    def test_getsimil (self):
        for aSet in self.lSet: