Grammalecte  Check-in [adf7f0e3af]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:[fr] update thesaurus builder
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | fr
Files: files | file ages | folders
SHA3-256:adf7f0e3aff787dbb34caab7e61d20efd103913206f9dec234638c95cbbd697b
User & Date: olr 2019-07-16 17:46:43
Context
2019-07-17
08:46
[fr] ajustements check-in: 9cfcd06aac user: olr tags: fr, trunk
2019-07-16
17:46
[fr] update thesaurus builder check-in: adf7f0e3af user: olr tags: fr, trunk
14:50
[lo] update update.xml check-in: 3948cb7d11 user: olr tags: lo, trunk, v1.2.1
Changes

Changes to gc_lang/fr/dictionnaire/thes_build.py.

28
29
30
31
32
33
34


35
36
37
38
39
40
41
            return
        for i, sLine in enumerate(readFile(spf), 1):
            sPOS, *lSynset = sLine.split("|")
            lSynset = self._removeDuplicatesFrom(lSynset)
            self.dSynset[i] = lSynset
            for sWord in lSynset:
                if not sWord.endswith("*"):


                    if sWord not in self.dSynEntry:
                        self.dSynEntry[sWord] = [ (sPOS, i) ]
                    else:
                        self.dSynEntry[sWord].append( (sPOS, i) )

    def showSynsetEntries (self):
        for sWord, lSynset in self.dSynEntry.items():







>
>







28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
            return
        for i, sLine in enumerate(readFile(spf), 1):
            sPOS, *lSynset = sLine.split("|")
            lSynset = self._removeDuplicatesFrom(lSynset)
            self.dSynset[i] = lSynset
            for sWord in lSynset:
                if not sWord.endswith("*"):
                    if "(" in sWord:
                        sWord = re.sub("\\(.*\\)", "", sWord).strip()
                    if sWord not in self.dSynEntry:
                        self.dSynEntry[sWord] = [ (sPOS, i) ]
                    else:
                        self.dSynEntry[sWord].append( (sPOS, i) )

    def showSynsetEntries (self):
        for sWord, lSynset in self.dSynEntry.items():