Revision: 17367
http://sourceforge.net/p/gate/code/17367
Author: markagreenwood
Date: 2014-02-20 14:52:32 +0000 (Thu, 20 Feb 2014)
Log Message:
-----------
fixed the gazetteer tests... again
Modified Paths:
--------------
gate/trunk/src/test/com/ontotext/gate/gazetteer/TestHashGazetteer.java
gate/trunk/src/test/gate/creole/TestPR.java
gate/trunk/src/test/gate/creole/gazetteer/TestFlexibleGazetteer.java
gate/trunk/src/test/gate/creole/gazetteer/TestGazetteer.java
Modified: gate/trunk/src/test/com/ontotext/gate/gazetteer/TestHashGazetteer.java
===================================================================
--- gate/trunk/src/test/com/ontotext/gate/gazetteer/TestHashGazetteer.java
2014-02-20 14:06:05 UTC (rev 17366)
+++ gate/trunk/src/test/com/ontotext/gate/gazetteer/TestHashGazetteer.java
2014-02-20 14:52:32 UTC (rev 17367)
@@ -68,8 +68,8 @@
//check whether the annotations are as expected
assertTrue("Found in "+ doc.getSourceUrl().getFile()+ " "+
doc.getAnnotations(GAZ_AS).size() +
- " Lookup annotations, instead of the expected 71.",
- doc.getAnnotations(GAZ_AS).size()== 71);
+ " Lookup annotations, instead of the expected 80.",
+ doc.getAnnotations(GAZ_AS).size()== 80);
} // testHashGazetteer();
Modified: gate/trunk/src/test/gate/creole/TestPR.java
===================================================================
--- gate/trunk/src/test/gate/creole/TestPR.java 2014-02-20 14:06:05 UTC (rev
17366)
+++ gate/trunk/src/test/gate/creole/TestPR.java 2014-02-20 14:52:32 UTC (rev
17367)
@@ -171,7 +171,7 @@
//
doc1.getAnnotations().get(ANNIEConstants.LOOKUP_ANNOTATION_TYPE).size()== 60);
assertEquals("Wrong number of annotations produced in " +
doc1.getSourceUrl().getFile(),
- 61,
+ 128,
doc1.getAnnotations().get(ANNIEConstants.LOOKUP_ANNOTATION_TYPE).size());
// assertTrue("Found in "+ doc2.getSourceUrl().getFile()+ " "+
@@ -180,7 +180,7 @@
//
doc2.getAnnotations().get(ANNIEConstants.LOOKUP_ANNOTATION_TYPE).size()== 134);
assertEquals("Wrong number of annotations produced in " +
doc2.getSourceUrl().getFile(),
- 126,
+ 220,
doc2.getAnnotations().get(ANNIEConstants.LOOKUP_ANNOTATION_TYPE).size());
// assertTrue("Found in "+ doc3.getSourceUrl().getFile()+ " "+
@@ -189,7 +189,7 @@
//
doc3.getAnnotations().get(ANNIEConstants.LOOKUP_ANNOTATION_TYPE).size()== 144);
assertEquals("Wrong number of annotations produced in " +
doc3.getSourceUrl().getFile(),
- 140,
+ 268,
doc3.getAnnotations().get(ANNIEConstants.LOOKUP_ANNOTATION_TYPE).size());
}//testGazetteer
Modified: gate/trunk/src/test/gate/creole/gazetteer/TestFlexibleGazetteer.java
===================================================================
--- gate/trunk/src/test/gate/creole/gazetteer/TestFlexibleGazetteer.java
2014-02-20 14:06:05 UTC (rev 17366)
+++ gate/trunk/src/test/gate/creole/gazetteer/TestFlexibleGazetteer.java
2014-02-20 14:52:32 UTC (rev 17367)
@@ -122,7 +122,7 @@
System.out.println("There are this many lookup annotations: "+
lookups.size());
}
- assertTrue("found " + lookups.size()+" was expecting 29",lookups.size()==
29);
+ assertTrue("found " + lookups.size()+" was expecting 49",lookups.size()==
49);
// Now clean up so we don't get a memory leak.
Factory.deleteResource(doc);
Modified: gate/trunk/src/test/gate/creole/gazetteer/TestGazetteer.java
===================================================================
--- gate/trunk/src/test/gate/creole/gazetteer/TestGazetteer.java
2014-02-20 14:06:05 UTC (rev 17366)
+++ gate/trunk/src/test/gate/creole/gazetteer/TestGazetteer.java
2014-02-20 14:52:32 UTC (rev 17367)
@@ -54,13 +54,13 @@
gaz.execute();
AnnotationSet resultAS = doc.getAnnotations("GazetteerAS");
assertTrue("Found " + resultAS.size() +
- " annotations instead of the expected 55!", resultAS.size() == 55);
+ " annotations instead of the expected 64!", resultAS.size() == 64);
resultAS.clear();
//test with partial words
gaz.setWholeWordsOnly(false);
gaz.execute();
- assertEquals("Wrong number of annotations produced", 148, resultAS.size());
+ assertEquals("Wrong number of annotations produced", 359, resultAS.size());
gaz.setWholeWordsOnly(true);
resultAS.clear();
@@ -68,7 +68,7 @@
gaz.setLongestMatchOnly(false);
gaz.execute();
assertTrue("Found " + resultAS.size() +
- " annotations instead of the expected 69!", resultAS.size() == 69);
+ " annotations instead of the expected 78!", resultAS.size() == 78);
gaz.setLongestMatchOnly(true);
resultAS.clear();
Factory.deleteResource(gaz);
@@ -81,7 +81,7 @@
gaz.setDocument(doc);
gaz.setAnnotationSetName("GazetteerAS");
gaz.execute();
- assertEquals("Wrong number of annotations generated", 87, resultAS.size());
+ assertEquals("Wrong number of annotations generated", 98, resultAS.size());
gaz.setCaseSensitive(true);
resultAS.clear();
Factory.deleteResource(gaz);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs