Debian Codegraph @

tests/Weights.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="n_sg">
13 <cat-item tags="n.sg"/>
14 <cat-item tags="n.sg.*"/>
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-rules>
30 <rule weight="0" firstChunk="NP">
31 <pattern>
32 <pattern-item n="adj"/>
33 <pattern-item n="n"/>
34 </pattern>
35 <action>
36 <out>
37 <chunk>
38 <source><clip pos="2" part="whole" side="sl"/></source>
39 <contents>
40 <lu>
41 <clip pos="2" part="lemh" side="tl"/>
42 <lit-tag v="n"/>
43 <clip pos="2" part="gender" side="tl"/>
44 <clip pos="2" part="number" side="sl"/>
45 <clip pos="2" part="lemq" side="tl"/>
46 </lu>
47 <b pos="1"/>
48 <lu>
49 <clip pos="1" part="lemh" side="tl"/>
50 <lit-tag v="adj"/>
51 <clip pos="1" part="gender" side="tl"/>
52 <clip pos="2" part="number" side="sl"/>
53 <clip pos="1" part="lemq" side="tl"/>
54 </lu>
55 </contents>
56 </chunk>
57 </out>
58 </action>
59 </rule>
60 <rule weight="1" firstChunk="NP">
61 <pattern>
62 <pattern-item n="adj"/>
63 <pattern-item n="n_sg"/>
64 </pattern>
65 <action>
66 <out>
67 <chunk>
68 <source><clip pos="2" part="whole" side="sl"/></source>
69 <contents>
70 <lu>
71 <clip pos="1" part="lemh" side="tl"/>
72 <lit-tag v="adj"/>
73 <clip pos="1" part="gender" side="tl"/>
74 <clip pos="2" part="number" side="sl"/>
75 <clip pos="1" part="lemq" side="tl"/>
76 </lu>
77 <b pos="1"/>
78 <lu>
79 <clip pos="2" part="lemh" side="tl"/>
80 <lit-tag v="n"/>
81 <clip pos="2" part="gender" side="tl"/>
82 <clip pos="2" part="number" side="sl"/>
83 <clip pos="2" part="lemq" side="tl"/>
84 </lu>
85 </contents>
86 </chunk>
87 </out>
88 </action>
89 </rule>
90 </section-rules>
91 </transfer>