incubator-ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stevenbeth...@apache.org
Subject svn commit: r1420749 - /incubator/ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/eval/RelationExtractorEvaluation.java
Date Wed, 12 Dec 2012 15:15:19 GMT
Author: stevenbethard
Date: Wed Dec 12 15:15:18 2012
New Revision: 1420749

URL: http://svn.apache.org/viewvc?rev=1420749&view=rev
Log:
Fixes bug in default for --relations command line option

Modified:
    incubator/ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/eval/RelationExtractorEvaluation.java

Modified: incubator/ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/eval/RelationExtractorEvaluation.java
URL: http://svn.apache.org/viewvc/incubator/ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/eval/RelationExtractorEvaluation.java?rev=1420749&r1=1420748&r2=1420749&view=diff
==============================================================================
--- incubator/ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/eval/RelationExtractorEvaluation.java
(original)
+++ incubator/ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/eval/RelationExtractorEvaluation.java
Wed Dec 12 15:15:18 2012
@@ -110,7 +110,7 @@ public class RelationExtractorEvaluation
         name = "--relations",
         usage = "determines which relations to evaluate on (separately)",
         required = false)
-    public List<String> relations = Arrays.asList("degree_of", "location_of");
+    public List<String> relations = null;
 
     @Option(
         name = "--test-on-ctakes",
@@ -133,6 +133,9 @@ public class RelationExtractorEvaluation
   public static void main(String[] args) throws Exception {
     Options options = new Options();
     options.parseOptions(args);
+    if (options.relations == null) {
+      options.relations = Arrays.asList("degree_of", "location_of");
+    }
 
     // error on invalid option combinations
     if (options.testDirectory != null && options.gridSearch) {



Mime
View raw message