Skip to content

Commit 50aecb7

Browse files
committed
Split into two tests, one for the extended gazetteer and one for the
feature gazetteer.
1 parent 3015a1f commit 50aecb7

6 files changed

Lines changed: 189 additions & 25 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
<collectionType>java.util.ArrayList</collectionType>
137137
</prList>
138138
<resourceType>gate.creole.ConditionalSerialAnalyserController</resourceType>
139-
<resourceName>multimatch.xgapp</resourceName>
139+
<resourceName>multimatch-eg</resourceName>
140140
<initParams class="gate.util.persistence.MapPersistence">
141141
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
142142
<localMap/>

tests/multimatch-fg.xgapp

Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
1+
<gate.util.persistence.GateApplication>
2+
<urlList class="gate.util.persistence.CollectionPersistence">
3+
<localList>
4+
<gate.creole.Plugin-Maven>
5+
<group>uk.ac.gate.plugins</group>
6+
<artifact>annie</artifact>
7+
<version>8.6-SNAPSHOT</version>
8+
<downloadListeners/>
9+
</gate.creole.Plugin-Maven>
10+
<gate.creole.Plugin-Maven>
11+
<group>uk.ac.gate.plugins</group>
12+
<artifact>stringannotation</artifact>
13+
<version>4.1</version>
14+
<downloadListeners/>
15+
</gate.creole.Plugin-Maven>
16+
</localList>
17+
<collectionType>java.util.Collections$UnmodifiableSet</collectionType>
18+
</urlList>
19+
<application class="gate.util.persistence.ConditionalSerialAnalyserControllerPersistence">
20+
<corpus class="gate.util.persistence.CorpusPersistence">
21+
<docList>
22+
<gate.util.persistence.LRPersistence>
23+
<resourceType>gate.corpora.DocumentImpl</resourceType>
24+
<resourceName>multimatch.txt_00010</resourceName>
25+
<initParams class="gate.util.persistence.MapPersistence">
26+
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
27+
<localMap>
28+
<entry>
29+
<string>encoding</string>
30+
<string>UTF-8</string>
31+
</entry>
32+
<entry>
33+
<string>sourceUrl</string>
34+
<gate.util.persistence.PersistenceManager-URLHolder>
35+
<urlString>$relpath$multimatch.txt</urlString>
36+
</gate.util.persistence.PersistenceManager-URLHolder>
37+
</entry>
38+
<entry>
39+
<string>stringContent</string>
40+
<string></string>
41+
</entry>
42+
</localMap>
43+
</initParams>
44+
</gate.util.persistence.LRPersistence>
45+
</docList>
46+
<resourceType>gate.corpora.CorpusImpl</resourceType>
47+
<resourceName>GATE Corpus_0000F</resourceName>
48+
<initParams class="gate.util.persistence.MapPersistence">
49+
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
50+
<localMap/>
51+
</initParams>
52+
</corpus>
53+
<strategiesList class="gate.util.persistence.CollectionPersistence">
54+
<localList>
55+
<gate.util.persistence.AnalyserRunningStrategyPersistence>
56+
<runMode>1</runMode>
57+
<featureName></featureName>
58+
<featureValue></featureValue>
59+
<pr class="gate.util.persistence.LanguageAnalyserPersistence">
60+
<runtimeParams class="gate.util.persistence.MapPersistence">
61+
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
62+
<localMap/>
63+
</runtimeParams>
64+
<resourceType>gate.creole.annotdelete.AnnotationDeletePR</resourceType>
65+
<resourceName>Document Reset PR 0000A</resourceName>
66+
<initParams class="gate.util.persistence.MapPersistence">
67+
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
68+
<localMap/>
69+
</initParams>
70+
<features class="gate.util.persistence.MapPersistence">
71+
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
72+
<localMap/>
73+
</features>
74+
</pr>
75+
</gate.util.persistence.AnalyserRunningStrategyPersistence>
76+
<gate.util.persistence.AnalyserRunningStrategyPersistence>
77+
<runMode>1</runMode>
78+
<featureName></featureName>
79+
<featureValue></featureValue>
80+
<pr class="gate.util.persistence.LanguageAnalyserPersistence">
81+
<runtimeParams class="gate.util.persistence.MapPersistence">
82+
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
83+
<localMap/>
84+
</runtimeParams>
85+
<resourceType>gate.creole.tokeniser.DefaultTokeniser</resourceType>
86+
<resourceName>ANNIE English Tokeniser 0000B</resourceName>
87+
<initParams class="gate.util.persistence.MapPersistence">
88+
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
89+
<localMap/>
90+
</initParams>
91+
<features class="gate.util.persistence.MapPersistence">
92+
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
93+
<localMap/>
94+
</features>
95+
</pr>
96+
</gate.util.persistence.AnalyserRunningStrategyPersistence>
97+
<gate.util.persistence.AnalyserRunningStrategyPersistence>
98+
<runMode>1</runMode>
99+
<featureName></featureName>
100+
<featureValue></featureValue>
101+
<pr class="gate.util.persistence.LanguageAnalyserPersistence">
102+
<runtimeParams class="gate.util.persistence.MapPersistence">
103+
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
104+
<localMap>
105+
<entry>
106+
<string>outputAnnotationSet</string>
107+
<string>AddNewAnnotation</string>
108+
</entry>
109+
<entry>
110+
<string>processingMode</string>
111+
<com.jpetrak.gate.stringannotation.extendedgazetteer.FeatureGazetteerProcessingMode>AddNewAnnotation</com.jpetrak.gate.stringannotation.extendedgazetteer.FeatureGazetteerProcessingMode>
112+
</entry>
113+
<entry>
114+
<string>textFeature</string>
115+
<string>string</string>
116+
</entry>
117+
</localMap>
118+
</runtimeParams>
119+
<resourceType>com.jpetrak.gate.stringannotation.extendedgazetteer.FeatureGazetteer</resourceType>
120+
<resourceName>Feature Gazetteer 0000A</resourceName>
121+
<initParams class="gate.util.persistence.MapPersistence">
122+
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
123+
<localMap>
124+
<entry>
125+
<string>caseSensitive</string>
126+
<boolean>false</boolean>
127+
</entry>
128+
<entry>
129+
<string>configFileURL</string>
130+
<gate.util.persistence.PersistenceManager-RRPersistence>
131+
<uriString>$relpath$multimatch.def</uriString>
132+
</gate.util.persistence.PersistenceManager-RRPersistence>
133+
</entry>
134+
</localMap>
135+
</initParams>
136+
<features class="gate.util.persistence.MapPersistence">
137+
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
138+
<localMap/>
139+
</features>
140+
</pr>
141+
</gate.util.persistence.AnalyserRunningStrategyPersistence>
142+
</localList>
143+
<collectionType>java.util.ArrayList</collectionType>
144+
</strategiesList>
145+
<prList class="gate.util.persistence.CollectionPersistence">
146+
<localList>
147+
<gate.util.persistence.LanguageAnalyserPersistence reference="../../../strategiesList/localList/gate.util.persistence.AnalyserRunningStrategyPersistence/pr"/>
148+
<gate.util.persistence.LanguageAnalyserPersistence reference="../../../strategiesList/localList/gate.util.persistence.AnalyserRunningStrategyPersistence[2]/pr"/>
149+
<gate.util.persistence.LanguageAnalyserPersistence reference="../../../strategiesList/localList/gate.util.persistence.AnalyserRunningStrategyPersistence[3]/pr"/>
150+
</localList>
151+
<collectionType>java.util.ArrayList</collectionType>
152+
</prList>
153+
<resourceType>gate.creole.ConditionalSerialAnalyserController</resourceType>
154+
<resourceName>multimatch-fg</resourceName>
155+
<initParams class="gate.util.persistence.MapPersistence">
156+
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
157+
<localMap/>
158+
</initParams>
159+
<features class="gate.util.persistence.MapPersistence">
160+
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
161+
<localMap/>
162+
</features>
163+
</application>
164+
</gate.util.persistence.GateApplication>

tests/multimatch.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
From the first list: fromlist1 (2 entries), alsolist1 (1), anotherlist1 (1)
2-
From the second list: fromlist2 (2 entries), alsolist2 (1), anotherlist2 (1)
3-
From the third: fromlist3 (2 entries), alsolist3 (1), anotherlist3 (1)
4-
From the first and second: fromlist12 (2 entries)
5-
From all three lists: fromlist123 (1)
1+
From the first list: fromlistone (2 entries), alsolistone (1), anotherlistone (1)
2+
From the second list: fromlisttwo (2 entries), alsolisttwo (1), anotherlisttwo (1)
3+
From the third: fromlistthree (2 entries), alsolistthree (1), anotherlistthree (1)
4+
From the first and second: fromlistonetwo (2 entries)
5+
From all three lists: fromlistonetwothree (1)

tests/multimatch1.lst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
fromlist1 f=first
2-
fromlist1 f=second
3-
alsolist1 f=first
4-
fromlist12 f=first
5-
anotherlist1 f=first
6-
fromlist12 f=second
7-
fromlist123
1+
fromlistone f=first
2+
fromlistone f=second
3+
alsolistone f=first
4+
fromlistonetwo f=first
5+
anotherlistone f=first
6+
fromlistonetwo f=second
7+
fromlistonetwothree

tests/multimatch2.lst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
fromlist2 f=first
2-
fromlist2 f=second
3-
alsolist2 f=first
4-
fromlist12 f=first
5-
anotherlist2 f=first
6-
fromlist12 f=second
7-
fromlist123
1+
fromlisttwo f=first
2+
fromlisttwo f=second
3+
alsolisttwo f=first
4+
fromlistonetwo f=first
5+
anotherlisttwo f=first
6+
fromlist1two f=second
7+
fromlistonetwothree

tests/multimatch3.lst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
fromlist3 f=first
2-
fromlist3 f=second
3-
alsolist3 f=first
4-
anotherlist3 f=first
5-
fromlist123
1+
fromlistthree f=first
2+
fromlistthree f=second
3+
alsolistthree f=first
4+
anotherlistthree f=first
5+
fromlistonetwothree

0 commit comments

Comments
 (0)