Grammalecte  Check-in [ebc52019dd]

Overview
Comment:[build] small label update
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | build
Files: files | file ages | folders
SHA3-256: ebc52019dd457175714f3a3801a56a6def367b8234cc212fd07db5c799fa834e
User & Date: olr on 2020-04-19 06:29:14
Other Links: manifest | tags
Context
2020-04-19
11:14
[fr] ajustements check-in: 3c1b141d21 user: olr tags: fr, trunk
06:29
[build] small label update check-in: ebc52019dd user: olr tags: build, trunk
2020-04-18
22:03
[fr] ajustements check-in: 6514f44ea0 user: olr tags: fr, trunk
Changes

Modified compile_rules.py from [cec64f3971] to [0bae5e7ec9].

   380    380               for aAction in aRule[6]:
   381    381                   d[aAction[1]] = d[aAction[1]] + 1
   382    382       return (d, len(lRules))
   383    383   
   384    384   
   385    385   def displayStats (lParagraphRules, lSentenceRules):
   386    386       "display rules numbers"
   387         -    print("  {:>18} {:>18} {:>18} {:>18}".format("DISAMBIGUATOR", "TEXT PROCESSOR", "GRAMMAR CHECKING", "REGEX"))
          387  +    print("               {:>18} {:>18} {:>18} {:>18}".format("DISAMBIGUATOR", "TEXT PROCESSOR", "GRAMMAR CHECKING", "REGEX"))
   388    388       d, nRule = _calcRulesStats(lParagraphRules)
   389         -    print("§ {:>10} actions {:>10} actions {:>10} actions  in {:>8} rules".format(d['='], d['~'], d['-'], nRule))
          389  +    print("    paragraph: {:>10} actions {:>10} actions {:>10} actions  in {:>8} rules".format(d['='], d['~'], d['-'], nRule))
   390    390       d, nRule = _calcRulesStats(lSentenceRules)
   391         -    print("s {:>10} actions {:>10} actions {:>10} actions  in {:>8} rules".format(d['='], d['~'], d['-'], nRule))
          391  +    print("    sentence:  {:>10} actions {:>10} actions {:>10} actions  in {:>8} rules".format(d['='], d['~'], d['-'], nRule))
   392    392   
   393    393   
   394    394   def mergeRulesByOption (lRules):
   395    395       "returns a list of tuples [option, list of rules] keeping the rules order"
   396    396       lFinal = []
   397    397       lTemp = []
   398    398       sOption = None