Grammalecte  Check-in [2683a366ca]

Overview
Comment:[core] unknown syntax for Python 3.5
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | core | rg
Files: files | file ages | folders
SHA3-256: 2683a366caa075cf5af11effd108bc722cbc3650df9f13ade22330954f91b513
User & Date: olr on 2018-08-28 08:14:50
Other Links: branch diff | manifest | tags
Context
2018-08-28
08:16
[fr][bug] gendicfr: oubli du signe <:> avant le tag Ov check-in: 2000f120a1 user: olr tags: fr, rg
08:14
[core] unknown syntax for Python 3.5 check-in: 2683a366ca user: olr tags: core, rg
07:33
[fr] ajustements check-in: 27f293e034 user: olr tags: fr, rg
Changes

Modified gc_core/py/lang_core/gc_engine.py from [fca8aab188] to [652216e1e3].

581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
        self.dError = {}

    def __str__ (self):
        s = "===== TEXT =====\n"
        s += "sentence: " + self.sSentence0 + "\n"
        s += "now:      " + self.sSentence  + "\n"
        for dToken in self.lToken:
            s += f'#{dToken["i"]}\t{dToken["nStart"]}:{dToken["nEnd"]}\t{dToken["sValue"]}\t{dToken["sType"]}'
            if "lMorph" in dToken:
                s += "\t" + str(dToken["lMorph"])
            if "tags" in dToken:
                s += "\t" + str(dToken["tags"])
            s += "\n"
        #for nPos, dToken in self.dTokenPos.items():
        #    s += f"{nPos}\t{dToken}\n"







|







581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
        self.dError = {}

    def __str__ (self):
        s = "===== TEXT =====\n"
        s += "sentence: " + self.sSentence0 + "\n"
        s += "now:      " + self.sSentence  + "\n"
        for dToken in self.lToken:
            s += '#{i}\t{nStart}:{nEnd}\t{sValue}\t{sType}'.format(**dToken)
            if "lMorph" in dToken:
                s += "\t" + str(dToken["lMorph"])
            if "tags" in dToken:
                s += "\t" + str(dToken["tags"])
            s += "\n"
        #for nPos, dToken in self.dTokenPos.items():
        #    s += f"{nPos}\t{dToken}\n"