Overview
| Comment: | [core] DARG: text processing |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | core | rg |
| Files: | files | file ages | folders |
| SHA3-256: |
5fc6d416505febdcd0257332fbc8902b |
| User & Date: | olr on 2018-06-06 15:24:46 |
| Other Links: | branch diff | manifest | tags |
Context
|
2018-06-06
| ||
| 16:55 | [build][core] tokens auto selection check-in: e0f39d31ba user: olr tags: core, build, rg | |
| 15:24 | [core] DARG: text processing check-in: 5fc6d41650 user: olr tags: core, rg | |
| 10:36 | [core][fr] end of lemma is now a slash instead of a space check-in: 023f83bc15 user: olr tags: fr, core, rg | |
Changes
Modified gc_core/py/lang_core/gc_engine.py from [f0f3202267] to [894e8606f6].
| ︙ | |||
77 78 79 80 81 82 83 | 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | - + + + |
dDA.clear()
try:
# regex parser
_, errs = _proofread(sText[iStart:iEnd], sRealText[iStart:iEnd], iStart, False, dDA, dPriority, sCountry, dOpt, bShowRuleId, bDebug, bContext)
aErrors.update(errs)
# token parser
oSentence = TokenSentence(sText[iStart:iEnd], sRealText[iStart:iEnd], iStart)
|
| ︙ | |||
662 663 664 665 666 667 668 | 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 | - + - + | #### TOKEN SENTENCE CHECKER class TokenSentence: |
| ︙ | |||
748 749 750 751 752 753 754 | 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 | - + - - + + - - + + - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - + + + + + + + + + + + + + + + + + + + - + + |
if bHasChanged:
bChange = True
if dErr:
print(dErr)
return (bChange, dErr)
def _executeActions (self, dNode, nTokenOffset, dPriority, dOpt, sCountry, bShowRuleId, bContext):
|
| ︙ |
Modified gc_lang/fr/rules_graph.grx from [02356176f2] to [747aec6cb3].
| ︙ | |||
34 35 36 37 38 39 40 41 42 43 44 45 46 47 | 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | + + + + + + + + + + + + + + |
# Fin d’interprétation du fichier avec une ligne commençant par #END
# ERREURS COURANTES
# http://fr.wikipedia.org/wiki/Wikip%C3%A9dia:Fautes_d%27orthographe/Courantes
__pp__
>avoir marre [d’|des|du|de]
<<- ~1:3>> *
TEST: J’en ai marre de ces gens-là.
__pp2__
il ne pense qu’ à sa gueule
<<- ~4:7>> que|Z|a|perdu
TEST: il ne pense qu’à sa gueule.
__avoir_confiance_en__
>avoir confiance (dans) [moi|toi|soi|lui|elle|nous|vous|eux|elles]
<<- -1>> en # Avoir confiance en quelqu’un ou quelque chose.|http://grammalecte.net
TEST: Elle avait confiance {{dans}} lui.
|
| ︙ | |||
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | + |
TEST: Je suis {{an}} désaccord avec lui.
__faire_plaisir__
>faire plaisirs
<<- -2>> plaisir # Faire plaisir : dans cette locution, “plaisir” doit être au singulier.
<<- ~2>> *
TEST: Ça me fait {{plaisirs}}.
__test__
je ~préf[éè]r [que|qu’] @(?::Os|:M)¬:X @:I
<<- morph(\1, ":V") and morph(\4, ":Os|:M", ":X") -5>> SUBJONCTIF # SUBJONCTIF.
TEST: je préférerais qu’Isabelle {{est}} partie.
|