Debian Codegraph @

tests/RetainVariable.trx

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <transfer>
3 <section-def-cats>
4 <def-cat n="adj">
5 <cat-item tags="adj"/>
6 <cat-item tags="adj.*"/>
7 </def-cat>
8 <def-cat n="n">
9 <cat-item tags="n"/>
10 <cat-item tags="n.*"/>
11 </def-cat>
12 <def-cat n="vblex">
13 <cat-item tags="vblex"/>
14 <cat-item tags="vblex.*"/>
15 </def-cat>
16 </section-def-cats>
17 <section-def-attrs>
18 <def-attr n="gender">
19 <attr-item tags="m"/>
20 <attr-item tags="f"/>
21 <attr-item tags="mf"/>
22 </def-attr>
23 <def-attr n="number">
24 <attr-item tags="sg"/>
25 <attr-item tags="pl"/>
26 <attr-item tags="sp"/>
27 </def-attr>
28 </section-def-attrs>
29 <section-def-vars>
30 <def-var n="number"/>
31 </section-def-vars>
32 <section-rules>
33 <rule weight="0" firstChunk="NP">
34 <pattern>
35 <pattern-item n="adj"/>
36 <pattern-item n="n"/>
37 </pattern>
38 <action>
39 <let><var n="number"/><clip pos="2" part="number" side="tl"/></let>
40 <out>
41 <chunk>
42 <source><clip pos="2" part="whole" side="sl"/></source>
43 <contents>
44 <lu>
45 <clip pos="2" part="lemh" side="tl"/>
46 <lit-tag v="n"/>
47 <clip pos="2" part="gender" side="tl"/>
48 <clip pos="2" part="number" side="sl"/>
49 <clip pos="2" part="lemq" side="tl"/>
50 </lu>
51 <b pos="1"/>
52 <lu>
53 <clip pos="1" part="lemh" side="tl"/>
54 <lit-tag v="adj"/>
55 <clip pos="1" part="gender" side="tl"/>
56 <clip pos="2" part="number" side="sl"/>
57 <clip pos="1" part="lemq" side="tl"/>
58 </lu>
59 </contents>
60 </chunk>
61 </out>
62 </action>
63 </rule>
64 <rule weight="1" firstChunk="V">
65 <pattern>
66 <pattern-item n="vblex"/>
67 </pattern>
68 <action>
69 <choose>
70 <when>
71 <test><equal><var n="number"/><lit v=""/></equal></test>
72 <let><var n="number"/><lit-tag v="sg"/></let>
73 </when>
74 </choose>
75 <out>
76 <chunk>
77 <source><clip pos="1" part="whole" side="sl"/></source>
78 <contents>
79 <lu>
80 <clip pos="1" part="lemh" side="tl"/>
81 <lit-tag v="vblex"/>
82 <var n="number"/>
83 <clip pos="1" part="lemq" side="tl"/>
84 </lu>
85 </contents>
86 </chunk>
87 </out>
88 </action>
89 </rule>
90 </section-rules>
91 </transfer>