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: |
adf7f0e3aff787dbb34caab7e61d20ef |
User & Date: | olr on 2019-07-16 17:46:43 |
Other Links: | manifest | tags |
Context
2019-07-17
| ||
08:46 | [fr] ajustements check-in: 9cfcd06aac user: olr tags: trunk, fr | |
2019-07-16
| ||
17:46 | [fr] update thesaurus builder check-in: adf7f0e3af user: olr tags: trunk, fr | |
14:50 | [lo] update update.xml check-in: 3948cb7d11 user: olr tags: trunk, lo, v1.2.1 | |
Changes
Modified gc_lang/fr/dictionnaire/thes_build.py from [34ec46a285] to [7fe275114e].
︙ | ︙ | |||
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(): |
︙ | ︙ |