Revision: 17344
http://sourceforge.net/p/gate/code/17344
Author: markagreenwood
Date: 2014-02-19 16:02:59 +0000 (Wed, 19 Feb 2014)
Log Message:
-----------
use local copies of the files instead of pulling from gate.ac.uk
Modified Paths:
--------------
gate/trunk/src/test/gate/util/TestClassificationMeasures.java
Modified: gate/trunk/src/test/gate/util/TestClassificationMeasures.java
===================================================================
--- gate/trunk/src/test/gate/util/TestClassificationMeasures.java
2014-02-19 14:56:06 UTC (rev 17343)
+++ gate/trunk/src/test/gate/util/TestClassificationMeasures.java
2014-02-19 16:02:59 UTC (rev 17344)
@@ -4,6 +4,7 @@
import gate.Document;
import gate.Factory;
import gate.Gate;
+import gate.corpora.TestDocument;
import java.util.ArrayList;
import java.net.URL;
@@ -44,16 +45,11 @@
try {
Gate.init();
-
- URI uri1 = new URI("http://gate.ac.uk/tests/iaa/beijing-opera.xml");
- URI uri2 = new URI("http://gate.ac.uk/tests/iaa/beijing-opera.xml");
- URI uri3 = new
URI("http://gate.ac.uk/tests/iaa/in-outlook-09-aug-2001.xml");
- URI uri4 = new
URI("http://gate.ac.uk/tests/iaa/in-outlook-09-aug-2001.xml");
- doc1 = Factory.newDocument(uri1.toURL());
- doc2 = Factory.newDocument(uri2.toURL());
- doc3 = Factory.newDocument(uri3.toURL());
- doc4 = Factory.newDocument(uri4.toURL());
+ doc1 = Factory.newDocument(new
URL(TestDocument.getTestServerName()+"tests/iaa/beijing-opera.xml"));
+ doc2 = Factory.newDocument(new
URL(TestDocument.getTestServerName()+"tests/iaa/beijing-opera.xml"));
+ doc3 = Factory.newDocument(new
URL(TestDocument.getTestServerName()+"tests/iaa/in-outlook-09-aug-2001.xml"));
+ doc4 = Factory.newDocument(new
URL(TestDocument.getTestServerName()+"tests/iaa/in-outlook-09-aug-2001.xml"));
} catch (Exception e) {
e.printStackTrace();
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