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].

382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
    return (d, len(lRules))


def displayStats (lParagraphRules, lSentenceRules):
    "display rules numbers"
    print("  {:>18} {:>18} {:>18} {:>18}".format("DISAMBIGUATOR", "TEXT PROCESSOR", "GRAMMAR CHECKING", "REGEX"))
    d, nRule = _calcRulesStats(lParagraphRules)
    print("§ {:>10} actions {:>10} actions {:>10} actions  in {:>8} rules".format(d['='], d['~'], d['-'], nRule))
    d, nRule = _calcRulesStats(lSentenceRules)
    print("s {:>10} actions {:>10} actions {:>10} actions  in {:>8} rules".format(d['='], d['~'], d['-'], nRule))


def mergeRulesByOption (lRules):
    "returns a list of tuples [option, list of rules] keeping the rules order"
    lFinal = []
    lTemp = []
    sOption = None







|

|







382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
    return (d, len(lRules))


def displayStats (lParagraphRules, lSentenceRules):
    "display rules numbers"
    print("               {:>18} {:>18} {:>18} {:>18}".format("DISAMBIGUATOR", "TEXT PROCESSOR", "GRAMMAR CHECKING", "REGEX"))
    d, nRule = _calcRulesStats(lParagraphRules)
    print("    paragraph: {:>10} actions {:>10} actions {:>10} actions  in {:>8} rules".format(d['='], d['~'], d['-'], nRule))
    d, nRule = _calcRulesStats(lSentenceRules)
    print("    sentence:  {:>10} actions {:>10} actions {:>10} actions  in {:>8} rules".format(d['='], d['~'], d['-'], nRule))


def mergeRulesByOption (lRules):
    "returns a list of tuples [option, list of rules] keeping the rules order"
    lFinal = []
    lTemp = []
    sOption = None