File size: 868 Bytes
5cecc35
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
pattern {
    QU[lemma="qui"|"quoi"|"comment"|"où"|"quand"|"lequel"|
    "pourquoi"|"combien"|"si"|"est-ce"|"est-ce que"] ;
    % ignored "en fonction duquel"
    P[upos="PRE",lemma="de"|"selon"|"suivant"|"à"|"au vu de"] ; % excluded "dans"
    P < QU ; % case with no word between the prep and the QU word
    % Y[] ; P < Y ; Y < QU % case with 1 other words between the prep and the QU word
}
without { % forcing "(en) fonction de / (au) niveau de / (à) propos de" if P[lemma="de"]
    P[lemma="de"] ; P2[lemma<>"fonction"|"niveau"|"propos"] ; P2 < P 
}
without { % forcing "(par) rapport à" if P[lemma="à"]
    P[lemma="à"] ; P2[lemma<>"rapport"] ; P2 < P 
}
without { % removing "de / à" as first word
    P[lemma="de"|"à"] ; A[form="__0__"] ; A < P
}
without { % removing "de / à" before a non-lemmatized word
    P[lemma="de"|"à"] ; A[!lemma] ; A < P
}