forked from aymara/lima
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest-fre.hyphen.xml
186 lines (186 loc) · 7.95 KB
/
test-fre.hyphen.xml
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet type="text/xsl" href="tva_simple.xsl"?>
<testcases>
<testcase id="fre.hyphen.1.1" type="bloquant">
<call-parameters>
<param key="text" value="Le match France-Angleterre a été marqué par de nombreux incidents. "/>
<param key="language" value="fre"/>
<list key="pipelines">
<item value="indexer"/>
</list>
</call-parameters>
<expl>tiret séparateur entre deux noms propres : le tokenizer découpe en France-Angleterre.</expl>
<test id="fre.hyphen.1.1" trace=".tokenizer.xml"
comment="le tokenizer découpe en France-Angleterre"
left="XPATH#//data_structure/vertex[token[position=10][length=17]]"
operator="exists"
right=""/>
</testcase>
<testcase id="fre.hyphen.1.2" type="bloquant">
<call-parameters>
<param key="text" value="Le match France-Angleterre a été marqué par de nombreux incidents. "/>
<param key="language" value="fre"/>
<list key="pipelines">
<item value="indexer"/>
</list>
</call-parameters>
<expl>tiret séparateur entre deux noms propres : on trouve France avec une macro categorie NP.</expl>
<test id="fre.hyphen.1.2" trace=".hyphen.xml"
comment="on trouve France avec une macro categorie NP"
left="XPATH#//data_structure/vertex[token[position=10][length=6]]//property/p[@prop='MACRO'][@val='NP']"
operator="exists"
right=""/>
</testcase>
<testcase id="fre.hyphen.1.3" type="bloquant">
<call-parameters>
<param key="text" value="Le match France-Angleterre a été marqué par de nombreux incidents. "/>
<param key="language" value="fre"/>
<list key="pipelines">
<item value="indexer"/>
</list>
</call-parameters>
<expl>tiret séparateur entre deux noms propres : on trouve Angleterre avec une macro categorie NP.</expl>
<test id="fre.hyphen.1.3" trace=".hyphen.xml"
comment="on trouve Angleterre avec une macro categorie NP"
left="XPATH#//data_structure/vertex[token[position=17][length=10]]//property/p[@prop='MACRO'][@val='NP']"
operator="exists"
right=""/>
</testcase>
<testcase id="fre.hyphen.1.4" type="informatif">
<call-parameters>
<param key="text" value="Le match France-Angleterre a été marqué par de nombreux incidents. "/>
<param key="language" value="fre"/>
<list key="pipelines">
<item value="indexer"/>
</list>
</call-parameters>
<expl>tiret séparateur entre deux noms propres : Le tiret n'est pas modifié.</expl>
<test id="fre.hyphen.1.4" trace=".hyphen.xml"
comment="Le tiret n'est pas modifié"
left="XPATH#//data_structure/vertex[token[position=16][length=1]]/string"
operator="="
right="-"/>
</testcase>
<testcase id="fre.hyphen.2.1" type="bloquant">
<call-parameters>
<param key="text" value="Le match france-angleterre a été marqué par de nombreux incidents. "/>
<param key="language" value="fre"/>
<list key="pipelines">
<item value="indexer"/>
</list>
</call-parameters>
<expl>tiret séparateur entre deux noms propres : le tokenizer découpe en france-angleterre.</expl>
<test id="fre.hyphen.2.1" trace=".tokenizer.xml"
comment="le tokenizer découpe en france-angleterre"
left="XPATH#//data_structure/vertex[token[position=10][length=17]]"
operator="exists"
right=""/>
</testcase>
<testcase id="fre.hyphen.2.2" type="informatif">
<call-parameters>
<param key="text" value="Le match france-angleterre a été marqué par de nombreux incidents. "/>
<param key="language" value="fre"/>
<list key="pipelines">
<item value="indexer"/>
</list>
</call-parameters>
<expl>tiret séparateur entre deux noms propres : france transformé en France avec une macro categorie NP.</expl>
<expl>Les noms propres comme France et Angleterre n'existent plus dans le dictionnaire (Lefff)</expl>
<!--test id="2.2.a" trace=".hyphen.xml"
comment="france transformé en France"
left="XPATH#//data_structure/vertex[token[position=10][length=6]]//form/@lemma"
operator="="
right="France"/-->
<test id="2.2.b" trace=".hyphen.xml"
comment="france a comme macro categorie NP"
left="XPATH#//data_structure/vertex[token[position=10][length=6]]//property/p[@prop='MACRO']/@val"
operator="="
right="NP"/>
</testcase>
<testcase id="fre.hyphen.2.3" type="informatif">
<call-parameters>
<param key="text" value="Le match france-angleterre a été marqué par de nombreux incidents. "/>
<param key="language" value="fre"/>
<list key="pipelines">
<item value="indexer"/>
</list>
</call-parameters>
<expl>tiret séparateur entre deux noms propres : angleterre transformé en Angleterre avec une macro categorie NP.</expl>
<expl>Les noms propres comme France et Angleterre n'existent plus dans le dictionnaire (Lefff): le test eszt passé de bloquant à informatif</expl>
<test id="2.3.a" trace=".hyphen.xml"
comment="angleterre transformé en Angleterre"
left="XPATH#//data_structure/vertex[token[position=17][length=10]]//form/@lemma"
operator="="
right="Angleterre"/>
<test id="2.3.b" trace=".hyphen.xml"
comment="angleterre a comme macro categorie NP"
left="XPATH#//data_structure/vertex[token[position=17][length=10]]//property/p[@prop='MACRO']/@val"
operator="="
right="NP"/>
</testcase>
<testcase id="fre.hyphen.3.1" type="bloquant">
<call-parameters>
<param key="text" value="Le match franco-anglais a été marqué par de nombreux incidents. "/>
<param key="language" value="fre"/>
<list key="pipelines">
<item value="indexer"/>
</list>
</call-parameters>
<expl>tiret séparateur entre deux noms propres : le tokenizer découpe en franco-anglais.</expl>
<test id="fre.hyphen.3.1" trace=".tokenizer.xml"
comment="le tokenizer découpe en franco-anglais"
left="XPATH#//data_structure/vertex[token[position=10][length=14]]"
operator="exists"
right=""/>
</testcase>
<testcase id="fre.hyphen.3.2" type="bloquant">
<call-parameters>
<param key="text" value="Le match franco-espagnol a été marqué par de nombreux incidents. "/>
<param key="language" value="fre"/>
<list key="pipelines">
<item value="indexer"/>
</list>
</call-parameters>
<expl>tiret séparateur : présence de franco.</expl>
<test id="fre.hyphen.3.2" trace=".hyphen.xml"
comment="franco"
left="XPATH#//data_structure/vertex[token[position=10][length=6]][data/hyphen_alternative/form/@norm='franco']"
operator="exists"
right=""/>
</testcase>
<testcase id="fre.hyphen.3.3" type="bloquant">
<call-parameters>
<param key="text" value="Le match franco-espagnol a été marqué par de nombreux incidents. "/>
<param key="language" value="fre"/>
<list key="pipelines">
<item value="indexer"/>
</list>
</call-parameters>
<expl>tiret séparateur : présence de espagnol.</expl>
<test id="fre.hyphen.3.3" trace=".hyphen.xml"
comment="anglais"
left="XPATH#//data_structure/vertex[token[position=17][length=8]][data/hyphen_alternative/form/@norm='espagnol']"
operator="exists"
right=""/>
</testcase>
<testcase id="fre.hyphen.4" type="bloquant">
<call-parameters>
<param key="text" value="Un gouvernement pro-américain a été mis en place. "/>
<param key="language" value="fre"/>
<list key="pipelines">
<item value="indexer"/>
</list>
</call-parameters>
<expl>pro est reconnu comme préfixe et non comme 'professionel'</expl>
<test id="fre.hyphen.4.1" trace=".hyphen.xml"
comment="reconnaissance pro- "
left="XPATH#//data_structure/vertex[token[position=17][length=3]][data/hyphen_alternative/form/@norm='pro']"
operator="exists"
right=""/>
<test id="fre.hyphen.4.2" trace=".hyphen.xml"
comment="non reconnaissance de professionel"
left="XPATH#//data_structure/vertex[token[position=17][length=3]][data/hyphen_alternative/form/@norm='professionnel']"
operator="notexists"
right=""/>
</testcase>
</testcases>