incubator-ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mattco...@apache.org
Subject svn commit: r1440385 - /incubator/ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/eval/AssertionEvalBasedOnModifier.java
Date Wed, 30 Jan 2013 13:09:00 GMT
Author: mattcoarr
Date: Wed Jan 30 13:08:59 2013
New Revision: 1440385

URL: http://svn.apache.org/viewvc?rev=1440385&view=rev
Log:
Changed the opennlp maxent training parameter from cutoff to use 2 instead of the default.

Modified:
    incubator/ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/eval/AssertionEvalBasedOnModifier.java

Modified: incubator/ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/eval/AssertionEvalBasedOnModifier.java
URL: http://svn.apache.org/viewvc/incubator/ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/eval/AssertionEvalBasedOnModifier.java?rev=1440385&r1=1440384&r2=1440385&view=diff
==============================================================================
--- incubator/ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/eval/AssertionEvalBasedOnModifier.java
(original)
+++ incubator/ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/eval/AssertionEvalBasedOnModifier.java
Wed Jan 30 13:08:59 2013
@@ -222,7 +222,9 @@ public class AssertionEvalBasedOnModifie
         evaluationOutputDirectory,
         annotationTypes,
         annotatorClass,
-        dataWriterFactoryClass
+        dataWriterFactoryClass,
+        "100",
+        "2"
         );
     /*
         ,
@@ -299,7 +301,7 @@ public class AssertionEvalBasedOnModifie
 	    "run generic: %b%n" +
 	    "%n%n",
 	    options.trainDirectory.getAbsolutePath(),
-	    options.testDirectory.getAbsolutePath(),
+	    (options.testDirectory != null) ? options.testDirectory.getAbsolutePath() : "",
 	    options.modelsDirectory.getAbsolutePath(),
 	    options.crossValidationFolds,
 	    options.runPolarity,
@@ -506,13 +508,13 @@ public static void printScore(Map<String
     
     SimplePipeline.runPipeline(collectionReader,  builder.createAggregateDescription());
     
-    HideOutput hider = new HideOutput();
+    //HideOutput hider = new HideOutput();
     for (String currentAssertionAttribute : annotationTypes)
     {
     	File currentDirectory = new File(directory, currentAssertionAttribute);
     	JarClassifierBuilder.trainAndPackage(currentDirectory, trainingArguments);
     }
-    hider.restoreOutput();
+    //hider.restoreOutput();
   }
 
   @Override



Mime
View raw message