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: |
ebc52019dd457175714f3a3801a56a6d |
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: trunk, fr | |
06:29 | [build] small label update check-in: ebc52019dd user: olr tags: trunk, build | |
2020-04-18
| ||
22:03 | [fr] ajustements check-in: 6514f44ea0 user: olr tags: trunk, fr | |
Changes
Modified compile_rules.py from [cec64f3971] to [0bae5e7ec9].
︙ | ︙ | |||
380 381 382 383 384 385 386 | for aAction in aRule[6]: d[aAction[1]] = d[aAction[1]] + 1 return (d, len(lRules)) def displayStats (lParagraphRules, lSentenceRules): "display rules numbers" | | | | | 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 | for aAction in aRule[6]: d[aAction[1]] = d[aAction[1]] + 1 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 |
︙ | ︙ |