Revision: 17383
http://sourceforge.net/p/gate/code/17383
Author: markagreenwood
Date: 2014-02-21 12:01:34 +0000 (Fri, 21 Feb 2014)
Log Message:
-----------
I think, fingers crossed, that this now means all the tests are fixed
Modified Paths:
--------------
gate/trunk/src/test/gate/creole/TestPR.java
gate/trunk/src/test/gate/resources/gate.ac.uk/tests/ft/gate.corpora.DocumentImpl/ft-bt-03-aug-2001___1389112908003___1053
gate/trunk/src/test/gate/resources/gate.ac.uk/tests/gu/gate.corpora.DocumentImpl/gu-Am-Brit-4-aug-2001___1389112961420___8541
gate/trunk/src/test/gate/resources/gate.ac.uk/tests/in/gate.corpora.DocumentImpl/in-outlook-09-aug-2001___1389113006670___655
gate/trunk/src/test/gate/xml/TestXml.java
Modified: gate/trunk/src/test/gate/creole/TestPR.java
===================================================================
--- gate/trunk/src/test/gate/creole/TestPR.java 2014-02-21 11:37:37 UTC (rev
17382)
+++ gate/trunk/src/test/gate/creole/TestPR.java 2014-02-21 12:01:34 UTC (rev
17383)
@@ -220,35 +220,35 @@
// assertions for doc 1
assertTrue("Found in "+ doc1.getSourceUrl().getFile()+ " "+
doc1.getAnnotations().get(ANNIEConstants.SENTENCE_ANNOTATION_TYPE).size() +
- " Sentence annotations, instead of the expected 21.",
-
doc1.getAnnotations().get(ANNIEConstants.SENTENCE_ANNOTATION_TYPE).size()== 21);
+ " Sentence annotations, instead of the expected 25.",
+
doc1.getAnnotations().get(ANNIEConstants.SENTENCE_ANNOTATION_TYPE).size()== 25);
assertTrue("Found in "+ doc1.getSourceUrl().getFile()+ " "+
doc1.getAnnotations().get("Split").size() +
- " Split annotations, instead of the expected 38.",
- doc1.getAnnotations().get("Split").size()== 38);
+ " Split annotations, instead of the expected 66.",
+ doc1.getAnnotations().get("Split").size()== 66);
// assertions for doc 2
assertTrue("Found in "+ doc2.getSourceUrl().getFile()+ " "+
doc2.getAnnotations().get(ANNIEConstants.SENTENCE_ANNOTATION_TYPE).size() +
- " Sentence annotations, instead of the expected 52.",
-
doc2.getAnnotations().get(ANNIEConstants.SENTENCE_ANNOTATION_TYPE).size()== 52);
+ " Sentence annotations, instead of the expected 57.",
+
doc2.getAnnotations().get(ANNIEConstants.SENTENCE_ANNOTATION_TYPE).size()== 57);
assertTrue("Found in "+ doc2.getSourceUrl().getFile()+ " "+
doc2.getAnnotations().get("Split").size() +
- " Split annotations, instead of the expected 75.",
- doc2.getAnnotations().get("Split").size()== 75);
+ " Split annotations, instead of the expected 110.",
+ doc2.getAnnotations().get("Split").size()== 110);
// assertions for doc 3
assertTrue("Found in "+ doc3.getSourceUrl().getFile()+ " "+
doc3.getAnnotations().get(ANNIEConstants.SENTENCE_ANNOTATION_TYPE).size() +
- " Sentence annotations, instead of the expected 66.",
-
doc3.getAnnotations().get(ANNIEConstants.SENTENCE_ANNOTATION_TYPE).size()== 66);
+ " Sentence annotations, instead of the expected 75.",
+
doc3.getAnnotations().get(ANNIEConstants.SENTENCE_ANNOTATION_TYPE).size()== 75);
assertTrue("Found in "+ doc3.getSourceUrl().getFile()+ " "+
doc3.getAnnotations().get("Split").size() +
- " Split annotations, instead of the expected 84.",
- doc3.getAnnotations().get("Split").size()== 84);
+ " Split annotations, instead of the expected 122.",
+ doc3.getAnnotations().get("Split").size()== 122);
}//testSplitter
public void testTagger() throws Exception {
Modified:
gate/trunk/src/test/gate/resources/gate.ac.uk/tests/ft/gate.corpora.DocumentImpl/ft-bt-03-aug-2001___1389112908003___1053
===================================================================
(Binary files differ)
Modified:
gate/trunk/src/test/gate/resources/gate.ac.uk/tests/gu/gate.corpora.DocumentImpl/gu-Am-Brit-4-aug-2001___1389112961420___8541
===================================================================
(Binary files differ)
Modified:
gate/trunk/src/test/gate/resources/gate.ac.uk/tests/in/gate.corpora.DocumentImpl/in-outlook-09-aug-2001___1389113006670___655
===================================================================
(Binary files differ)
Modified: gate/trunk/src/test/gate/xml/TestXml.java
===================================================================
--- gate/trunk/src/test/gate/xml/TestXml.java 2014-02-21 11:37:37 UTC (rev
17382)
+++ gate/trunk/src/test/gate/xml/TestXml.java 2014-02-21 12:01:34 UTC (rev
17383)
@@ -16,25 +16,36 @@
package gate.xml;
-import java.io.File;
-import java.io.FileOutputStream;
-import java.io.OutputStreamWriter;
-import java.io.Writer;
-import java.net.URL;
-import java.util.*;
-import java.text.NumberFormat;
-
-import junit.framework.*;
-
-import gate.*;
+import gate.Annotation;
+import gate.AnnotationSet;
+import gate.Corpus;
+import gate.Document;
+import gate.DocumentFormat;
+import gate.Factory;
+import gate.FeatureMap;
+import gate.Gate;
+import gate.GateConstants;
import gate.corpora.DocumentImpl;
import gate.corpora.TestDocument;
-import gate.creole.SerialAnalyserController;
+import gate.creole.ANNIEConstants;
+import gate.creole.ConditionalSerialAnalyserController;
import gate.util.Files;
-import gate.util.Err;
import gate.util.persistence.PersistenceManager;
-import gate.creole.ANNIEConstants;
+import java.io.File;
+import java.net.URL;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+import java.util.TreeSet;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
//import org.w3c.www.mime.*;
@@ -227,7 +238,7 @@
verifyAnnotationIDGenerator(origDoc);
// Load ANNIE with defaults and run it on the document
- SerialAnalyserController annie = (SerialAnalyserController)
+ ConditionalSerialAnalyserController annie =
(ConditionalSerialAnalyserController)
PersistenceManager.loadObjectFromFile(new File(new File(
Gate.getPluginsHome(), ANNIEConstants.PLUGIN_DIR),
ANNIEConstants.DEFAULT_FILE));
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