incubator-ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dlig...@apache.org
Subject svn commit: r1432935 - /incubator/ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/eval/RelationExtractorEvaluation.java
Date Mon, 14 Jan 2013 14:53:57 GMT
Author: dligach
Date: Mon Jan 14 14:53:57 2013
New Revision: 1432935

URL: http://svn.apache.org/viewvc?rev=1432935&view=rev
Log:
merged back to the previous version to erase a change I accidentally commited

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=1432935&r1=1432934&r2=1432935&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
Mon Jan 14 14:53:57 2013
@@ -28,15 +28,6 @@ import java.util.List;
 import java.util.Map;
 import java.util.Set;
 
-import org.apache.ctakes.relationextractor.ae.Baseline3EntityMentionPairRelationExtractorAnnotator;
-import org.apache.ctakes.relationextractor.ae.DegreeOfRelationExtractorAnnotator;
-import org.apache.ctakes.relationextractor.ae.EntityMentionPairRelationExtractorAnnotator;
-import org.apache.ctakes.relationextractor.ae.RelationExtractorAnnotator;
-import org.apache.ctakes.typesystem.type.relation.BinaryTextRelation;
-import org.apache.ctakes.typesystem.type.relation.RelationArgument;
-import org.apache.ctakes.typesystem.type.textsem.EntityMention;
-import org.apache.ctakes.typesystem.type.textsem.IdentifiedAnnotation;
-import org.apache.ctakes.typesystem.type.textsem.Modifier;
 import org.apache.uima.UIMAFramework;
 import org.apache.uima.analysis_engine.AnalysisEngine;
 import org.apache.uima.analysis_engine.AnalysisEngineDescription;
@@ -81,6 +72,15 @@ import com.google.common.collect.Maps;
 import com.google.common.collect.Ordering;
 import com.google.common.collect.Sets;
 
+import org.apache.ctakes.relationextractor.ae.DegreeOfRelationExtractorAnnotator;
+import org.apache.ctakes.relationextractor.ae.EntityMentionPairRelationExtractorAnnotator;
+import org.apache.ctakes.relationextractor.ae.RelationExtractorAnnotator;
+import org.apache.ctakes.typesystem.type.relation.BinaryTextRelation;
+import org.apache.ctakes.typesystem.type.relation.RelationArgument;
+import org.apache.ctakes.typesystem.type.textsem.EntityMention;
+import org.apache.ctakes.typesystem.type.textsem.IdentifiedAnnotation;
+import org.apache.ctakes.typesystem.type.textsem.Modifier;
+
 public class RelationExtractorEvaluation extends Evaluation_ImplBase<File, AnnotationStatistics<String>>
{
 
   public static class Options extends Options_ImplBase {
@@ -138,7 +138,7 @@ public class RelationExtractorEvaluation
   
   // parameter settings currently optimized for SHARP data
   private static final ParameterSettings BEST_DEGREE_OF_PARAMETERS = new ParameterSettings(false,
0.5f, "radial basis function", 10.0, 0.0010);
-  private static final ParameterSettings BEST_NON_DEGREE_OF_PARAMETERS = new ParameterSettings(true,
1.0f, "radial basis function", 10.0, 0.01);
+  private static final ParameterSettings BEST_NON_DEGREE_OF_PARAMETERS = new ParameterSettings(false,
1.0f, "radial basis function", 10.0, 0.01);
   
   public static void main(String[] args) throws Exception {
     Options options = new Options();
@@ -163,7 +163,7 @@ public class RelationExtractorEvaluation
       boolean isDegreeOf = relationCategory.equals("degree_of");
       Class<? extends RelationExtractorAnnotator> annotatorClass = isDegreeOf
           ? DegreeOfRelationExtractorAnnotator.class
-          : Baseline3EntityMentionPairRelationExtractorAnnotator.class;
+          : EntityMentionPairRelationExtractorAnnotator.class;
 
       // determine the type of classifier to be trained
       Class<? extends DataWriter<String>> dataWriterClass = LIBSVMStringOutcomeDataWriter.class;



Mime
View raw message