Merge lp:~rodisolomon/relex/rules into lp:~amebel/relex/rules

Proposed by Rodas Solomon
Status: Merged
Merged at revision: 1333
Proposed branch: lp:~rodisolomon/relex/rules
Merge into: lp:~amebel/relex/rules
Diff against target: 158 lines (+131/-17)
1 file modified
data/relex-semantic-algs.txt (+131/-17)
To merge this branch: bzr merge lp:~rodisolomon/relex/rules
Reviewer Review Type Date Requested Status
Amen Belayneh Approve
Review via email: mp+193930@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Amen Belayneh (amebel) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'data/relex-semantic-algs.txt'
2--- data/relex-semantic-algs.txt 2013-11-05 08:06:52 +0000
3+++ data/relex-semantic-algs.txt 2013-11-05 14:10:35 +0000
4@@ -1667,23 +1667,137 @@
5 <F_R comparative-relation-word> = <F_L>
6 <F_R COMP-SUBJ-FLAG> = T
7 ;
8-; Puts a reference to object of 'than' in the word 'than'
9-;
10-#TemplateActionAlg
11-COMPARATIVE_OBJ1
12-<LAB> = \U\.c\.*|\O\.c\.*
13-<F_L str> = than|as
14-=
15-<F_L comparative-obj-word> = <F_R>
16-;
17-; Brings the comparative object into the controlling verb
18-;
19-#TemplateActionAlg
20-COMPARATIVE_OBJ2
21-<LAB> = \MV[tz]\.*
22-<F_R comparative-obj-word> != %
23-=
24-<F_L comparative-obj-word> = <F_R comparative-obj-word>
25+;**********************************************************
26+;General case
27+;**********************************************************
28+#TemplateActionAlg
29+COMPARATIVE_1
30+<LAB> = \Ss
31+<F_R inflection> =.v
32+=
33+<F_R temp> += <F_L ref>
34+#TemplateActionAlg
35+COMPARATIVE_2
36+<LAB> = \S\.*
37+<LAB> != \Ss
38+=
39+<F_R temp> += <F_L ref>
40+;**********************************************************************************************
41+;Rule for Dependency Relation "than"--> comp_temp is used for temporary storage purpose.
42+;**********************************************************************************************
43+#TemplateActionAlg
44+RELATION_THAN_1
45+<LAB> = \CX|\Bc
46+<F_L str> = than|as
47+<F_R temp> != %
48+=
49+<F_L comp_temp> += <F_R temp>
50+<F_R temp> = %
51+#TemplateActionAlg
52+RELATION_THAN_2
53+<LAB> = \O\.*|\C\.*|\S\.*
54+<F_L str> = than|as
55+;<LAB> != \Cta
56+=
57+<F_L comp_temp> += <F_R ref>
58+<F_R comp_temp> = %
59+#TemplateActionAlg
60+RELATION_THAN_3
61+<LAB> = \MVt\.*
62+<F_R comp_temp> != %
63+=
64+<F_L comp_temp> = %
65+<F_L comp_temp> += <F_R comp_temp>
66+<F_R comp_temp> = %
67+#TemplateActionAlg
68+RELATION_THAN_4
69+<LAB> = \Pa\.*|\I\.*
70+<LAB> != \Pam
71+<F_R comp_temp> != %
72+=
73+<F_L comp_temp> += <F_R comp_temp>
74+<F_R comp_temp> = %
75+#TemplateActionAlg
76+RELATION_THAN_5
77+<LAB> = \S\.*
78+<F_R comp_temp> != %
79+=
80+<F_L ref links than> += <F_R comp_temp>
81+<F_R comp_temp> = %
82+#TemplateActionAlg
83+RELATION_THAN_6
84+<LAB> = \MVpn
85+=
86+<F_L comp_temp2> = %
87+<F_L comp_temp2> = <F_R ref>
88+#TemplateActionAlg
89+RELATION_THAN_7
90+<LAB> = \MVpn
91+<F_L comp_temp2> != %
92+=
93+<F_R ref links than> += <F_L comp_temp2>
94+<F_L comp_temp2> = %
95+;***********************************************************************************************
96+;Rule for Dependency Relation "than1".comp_temp1 is used for temporary storage purpose.
97+;***********************************************************************************************
98+#TemplateActionAlg
99+RELATION_THAN1_1
100+<LAB> = \Paf\.*
101+<F_L str> = than
102+=
103+<F_L comp_temp1> += <F_R ref>
104+#TemplateActionAlg
105+RELATION_THAN1_2
106+<LAB> = \C\.*
107+<F_R temp> != %
108+=
109+<F_L comp_temp1> += <F_R temp>
110+<F_R temp> = %
111+#TemplateActionAlg
112+RELATION_THAN1_3
113+<LAB> = \MVt\.*
114+<F_R comp_temp1> != %
115+=
116+<F_L ref links than1> += <F_R comp_temp1>
117+<F_R comp_temp1> = %
118+#TemplateActionAlg
119+RELATION_THAN1_4
120+<LAB> = \MV\.*|\U\.c\.*|\Os\.*
121+;<LAB> = \MV\.*|\U\.c\.*
122+<F_L str> = than|as
123+<F_R str> != in|on
124+<F_R inflection> != .m|.n
125+=
126+<F_L comp_temp1> += <F_R ref>
127+#TemplateActionAlg
128+RELATION_THAN1_5
129+<LAB> = \MVt\.*
130+<F_R comp_temp1> != %
131+=
132+<F_L comp_temp1> += <F_R comp_temp1>
133+<F_R comp_temp1> = %
134+#TemplateActionAlg
135+CLEAN
136+<LAB> = \Ss
137+<F_R comp_temp1> != %
138+=
139+<F_L ref links than> = %
140+#TemplateActionAlg
141+RELATION_THAN1_6
142+<LAB> = \MVa|\Ou\.*
143+<F_L comp_temp1> != %
144+=
145+<F_R ref links than1> += <F_L comp_temp1>
146+<F_L comp_temp1> = %
147+;*****************************************************************
148+;END THAN AND THAN1
149+;***********************************************
150+;#TemplateActionAlg
151+;COMPARATIVE_OBJ2
152+;<LAB> = \MV[tz]\.*
153+;<F_R comparative-obj-word> != %
154+;=
155+;<F_L comparative-obj-word> = <F_R comparative-obj-word>
156 ;
157 ; Brings the object and comparative 2nd-part into the comparative subject
158 ; But only if there's a 2nd part -- "She likes more pasta" doesn't have

Subscribers

People subscribed via source and target branches

to all changes: