forked from Cherifabk/ArabTAG-XMG
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSynArabTAG.mg
97 lines (77 loc) · 2.91 KB
/
SynArabTAG.mg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
%Cherifa Ben Khelil : [email protected]
%%=============================================================================
%% les fichiers de la méta-grammaire.
%%
%%=============================================================================
include Syntagmes.mg
include Verbal.mg
include Nominal.mg
%%=============================================================================
%% phrases interrogatives
%%=============================================================================
class Interrogative
{
<syn>
{
%---Est ce que Ali dort? / هل ينامُ عليٌ؟
node (color=red, mark=nadj) [cat=sv, fgtype=interrogative]{
node (mark=anchor, color=red) [cat=inter]
node (mark=subst, color=red ) [cat=sv]}
|
%---Pourquoi? / لماذا؟
node (color=red) [cat=sv, fgtype=interrogative]{
node (mark=anchor, color=red) [cat=inter, pint=i_e]}
|
%---Jusqu'à quand ali s'est endormi? / إلى متى نامَ عليٌ؟
node (color=red) [cat=sv, fgtype=interrogative]{
node (mark=subst, color=red ) [cat=p]
node (mark=anchor, color=red) [cat=inter]
node (mark=subst, color=red ) [cat=sv]}
|
%---Est ce qu'il fait beau? / هل الطقسُ جميلٌ؟
node (color=red) [cat=pn, fgtype=interrogative]{
node (mark=anchor, color=red) [cat=inter]
node (mark=subst, color=red ) [cat=pn]}
|
%---Qui est à la maison? / منْ فِي المنزلِ؟
node (color=red) [cat=pn, fgtype=interrogative]{
node (mark=anchor, color=red) [cat=inter]
node (mark=subst, color=red ) [cat=sp]}
|
%---Qui est à la maison? / منْ فِي المنزلِ؟
node (color=red) [cat=pn, fgtype=interrogative]{
node (mark=anchor, color=red) [cat=inter]
node (mark=subst, color=red ) [cat=cc]}
|
%---Où est le livre de lecture? / أينَ كتابُ القراءةِ؟
node (color=red) [cat=pn, fgtype=interrogative]{
node (mark=anchor, color=red) [cat=inter]
node (mark=subst, color=red ) [cat=sn]}
}
}
%%=============================================================================
%% phrases exclamatives
%%=============================================================================
class Exclamative
{
<syn>
{
%---
node (color=red) [cat=pn, fgtype=exclamative]{
node (mark=anchor, color=red) [cat=exc]
node (mark=subst, color=red ) [cat=sn, subcat=sn_sem_comp]}}
}
%%=============================================================================
%% phrases d'appel
%%=============================================================================
class Appel
declare ?Cat ?Num ?Gen ?Hum ?Anime
{
<syn>
{
%---
(?Cat=pn | ?Cat=sn);
node (color=red) [cat=?Cat, fgtype=appel, num=?Num, gen=?Gen, hum=?Hum, anime=?Anime]{
node (mark=anchor, color=red) [cat=app]
node (mark=subst, color=red ) [cat=sn, subcat=@{sn_ann, nom_prop}, num=?Num, gen=?Gen, hum=?Hum, anime=?Anime]}}
}