ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From james-mas...@apache.org
Subject svn commit: r1500614 - /ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/train/TrainAttributeModels.java
Date Mon, 08 Jul 2013 09:03:21 GMT
Author: james-masanz
Date: Mon Jul  8 09:03:21 2013
New Revision: 1500614

URL: http://svn.apache.org/r1500614
Log:
add comment

Modified:
    ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/train/TrainAttributeModels.java

Modified: ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/train/TrainAttributeModels.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/train/TrainAttributeModels.java?rev=1500614&r1=1500613&r2=1500614&view=diff
==============================================================================
--- ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/train/TrainAttributeModels.java
(original)
+++ ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/train/TrainAttributeModels.java
Mon Jul  8 09:03:21 2013
@@ -7,7 +7,11 @@ import org.apache.ctakes.assertion.eval.
 import org.apache.ctakes.assertion.util.AssertionConst;
 
 import scala.actors.threadpool.Arrays;
-
+/**
+ * For each assertion attribute (polarity, conditional, etc), train a model using the data
+ * in the training directories for that attribute, and store the model under the models-dir
+ * Note that this uses constants within {@link AssertionConst} for the directory names.
+ */
 public class TrainAttributeModels {
 
 	public static void main(String[] args) throws Exception {
@@ -19,7 +23,7 @@ public class TrainAttributeModels {
 			params.add("--train-dir"); 	params.add(AssertionConst.trainingDirectories.get(attribute));
 //			params.add("--test-dir"); 	params.add("sharp_data/dev");
 			params.add("--models-dir"); params.add(AssertionConst.modelDirectory);
-//			params.add("--evaluation-output-dir");	params.add("sharp_data/output"); 
+//			params.add("--evaluation-output-dir");	params.add(AssertionConst.evalOutputDir); 
 			params.add("--train-only"); 
 			
 			// Build up an "ignore" string



Mime
View raw message