Revision: 17375
http://sourceforge.net/p/gate/code/17375
Author: markagreenwood
Date: 2014-02-21 09:40:55 +0000 (Fri, 21 Feb 2014)
Log Message:
-----------
another one bites the dust: fixed the transducer tests
Modified Paths:
--------------
gate/trunk/src/test/gate/creole/TestPR.java
Modified: gate/trunk/src/test/gate/creole/TestPR.java
===================================================================
--- gate/trunk/src/test/gate/creole/TestPR.java 2014-02-20 16:37:15 UTC (rev
17374)
+++ gate/trunk/src/test/gate/creole/TestPR.java 2014-02-21 09:40:55 UTC (rev
17375)
@@ -329,8 +329,8 @@
doc1.getAnnotations().get(ANNIEConstants.ORGANIZATION_ANNOTATION_TYPE).size()==
27);
assertTrue("Found in "+doc1.getSourceUrl().getFile()+ " "+
doc1.getAnnotations().get(ANNIEConstants.LOCATION_ANNOTATION_TYPE).size() +
- " Location annotations, instead of the expected 3",
-
doc1.getAnnotations().get(ANNIEConstants.LOCATION_ANNOTATION_TYPE).size()== 3);
+ " Location annotations, instead of the expected 2",
+
doc1.getAnnotations().get(ANNIEConstants.LOCATION_ANNOTATION_TYPE).size()== 2);
assertTrue("Found in "+doc1.getSourceUrl().getFile()+ " "+
doc1.getAnnotations().get(ANNIEConstants.PERSON_ANNOTATION_TYPE).size() +
" Person annotations, instead of the expected 1",
@@ -351,8 +351,8 @@
doc2.getAnnotations().get(ANNIEConstants.ORGANIZATION_ANNOTATION_TYPE).size()==
25);
assertTrue("Found in "+doc2.getSourceUrl().getFile()+ " "+
doc2.getAnnotations().get(ANNIEConstants.LOCATION_ANNOTATION_TYPE).size() +
- " Location annotations, instead of the expected 11",
-
doc2.getAnnotations().get(ANNIEConstants.LOCATION_ANNOTATION_TYPE).size()== 11);
+ " Location annotations, instead of the expected 10",
+
doc2.getAnnotations().get(ANNIEConstants.LOCATION_ANNOTATION_TYPE).size()== 10);
assertTrue("Found in "+doc2.getSourceUrl().getFile()+ " "+
doc2.getAnnotations().get(ANNIEConstants.PERSON_ANNOTATION_TYPE).size() +
" Person annotations, instead of the expected 1",
@@ -369,16 +369,16 @@
// assertions for doc 3
assertTrue("Found in "+doc3.getSourceUrl().getFile()+ " "+
doc3.getAnnotations().get(ANNIEConstants.ORGANIZATION_ANNOTATION_TYPE).size() +
- " Organization annotations, instead of the expected 32",
-
doc3.getAnnotations().get(ANNIEConstants.ORGANIZATION_ANNOTATION_TYPE).size()==
32);
+ " Organization annotations, instead of the expected 28",
+
doc3.getAnnotations().get(ANNIEConstants.ORGANIZATION_ANNOTATION_TYPE).size()==
28);
assertTrue("Found in "+doc3.getSourceUrl().getFile()+ " "+
doc3.getAnnotations().get(ANNIEConstants.LOCATION_ANNOTATION_TYPE).size() +
- " Location annotations, instead of the expected 12",
-
doc3.getAnnotations().get(ANNIEConstants.LOCATION_ANNOTATION_TYPE).size()== 12);
+ " Location annotations, instead of the expected 11",
+
doc3.getAnnotations().get(ANNIEConstants.LOCATION_ANNOTATION_TYPE).size()== 11);
assertTrue("Found in "+doc3.getSourceUrl().getFile()+ " "+
doc3.getAnnotations().get(ANNIEConstants.PERSON_ANNOTATION_TYPE).size() +
- " Person annotations, instead of the expected 7",
-
doc3.getAnnotations().get(ANNIEConstants.PERSON_ANNOTATION_TYPE).size()== 7);
+ " Person annotations, instead of the expected 8",
+
doc3.getAnnotations().get(ANNIEConstants.PERSON_ANNOTATION_TYPE).size()== 8);
assertTrue("Found in "+doc3.getSourceUrl().getFile()+ " "+
doc3.getAnnotations().get(ANNIEConstants.DATE_ANNOTATION_TYPE).size() +
" Date annotations, instead of the expected 7",
@@ -388,7 +388,7 @@
" Money annotations, instead of the expected 4",
doc3.getAnnotations().get(ANNIEConstants.MONEY_ANNOTATION_TYPE).size()==
4);
- assertEquals("Wrong number of Person annotations in OrthoMatcher test
document",21,
+ assertEquals("Wrong number of Person annotations in OrthoMatcher test
document",22,
doc4.getAnnotations().get(ANNIEConstants.PERSON_ANNOTATION_TYPE).size());
}//testTransducer
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