ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tm...@apache.org
Subject svn commit: r1632040 - /ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/medfacts/cleartk/CreateAssertionDescriptor.java
Date Wed, 15 Oct 2014 14:00:54 GMT
Author: tmill
Date: Wed Oct 15 14:00:53 2014
New Revision: 1632040

URL: http://svn.apache.org/r1632040
Log:
Remove references to assertion zoner.

Modified:
    ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/medfacts/cleartk/CreateAssertionDescriptor.java

Modified: ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/medfacts/cleartk/CreateAssertionDescriptor.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/medfacts/cleartk/CreateAssertionDescriptor.java?rev=1632040&r1=1632039&r2=1632040&view=diff
==============================================================================
--- ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/medfacts/cleartk/CreateAssertionDescriptor.java
(original)
+++ ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/medfacts/cleartk/CreateAssertionDescriptor.java
Wed Oct 15 14:00:53 2014
@@ -34,11 +34,8 @@ import org.apache.uima.fit.factory.Analy
 import org.apache.uima.fit.factory.ConfigurationParameterFactory;
 import org.apache.uima.resource.ResourceInitializationException;
 import org.cleartk.ml.CleartkAnnotator;
-import org.cleartk.ml.DataWriterFactory;
 import org.cleartk.ml.jar.DirectoryDataWriterFactory;
 import org.cleartk.ml.jar.GenericJarClassifierFactory;
-import org.cleartk.ml.opennlp.maxent.MaxentStringOutcomeDataWriter;
-import org.mitre.medfacts.uima.ZoneAnnotator;
 
 public class CreateAssertionDescriptor
 {
@@ -81,23 +78,23 @@ public class CreateAssertionDescriptor
     AnalysisEngineDescription assertionAttributeClearerAnnotator = AnalysisEngineFactory.createEngineDescription(ReferenceAnnotationsSystemAssertionClearer.class);
     builder.add(assertionAttributeClearerAnnotator);
     
-    String generalSectionRegexFileUri =
-        "org/mitre/medfacts/zoner/section_regex.xml";
-    AnalysisEngineDescription zonerAnnotator =
-        AnalysisEngineFactory.createEngineDescription(ZoneAnnotator.class,
-            ZoneAnnotator.PARAM_SECTION_REGEX_FILE_URI,
-            generalSectionRegexFileUri
-            );
-    builder.add(zonerAnnotator);
-
-    String mayoSectionRegexFileUri =
-        "org/mitre/medfacts/uima/mayo_sections.xml";
-    AnalysisEngineDescription mayoZonerAnnotator =
-        AnalysisEngineFactory.createEngineDescription(ZoneAnnotator.class,
-            ZoneAnnotator.PARAM_SECTION_REGEX_FILE_URI,
-            mayoSectionRegexFileUri
-            );
-    builder.add(mayoZonerAnnotator);
+//    String generalSectionRegexFileUri =
+//        "org/mitre/medfacts/zoner/section_regex.xml";
+//    AnalysisEngineDescription zonerAnnotator =
+//        AnalysisEngineFactory.createPrimitiveDescription(ZoneAnnotator.class,
+//            ZoneAnnotator.PARAM_SECTION_REGEX_FILE_URI,
+//            generalSectionRegexFileUri
+//            );
+//    builder.add(zonerAnnotator);
+//
+//    String mayoSectionRegexFileUri =
+//        "org/mitre/medfacts/uima/mayo_sections.xml";
+//    AnalysisEngineDescription mayoZonerAnnotator =
+//        AnalysisEngineFactory.createPrimitiveDescription(ZoneAnnotator.class,
+//            ZoneAnnotator.PARAM_SECTION_REGEX_FILE_URI,
+//            mayoSectionRegexFileUri
+//            );
+//    builder.add(mayoZonerAnnotator);
     
     
     AnalysisEngineDescription polarityAnnotator = AnalysisEngineFactory.createEngineDescription(PolarityCleartkAnalysisEngine.class);
//,  this.additionalParamemters);
@@ -183,23 +180,23 @@ public class CreateAssertionDescriptor
     AnalysisEngineDescription assertionAttributeClearerAnnotator = AnalysisEngineFactory.createEngineDescription(ReferenceAnnotationsSystemAssertionClearer.class);
     builder.add(assertionAttributeClearerAnnotator);
     
-    String generalSectionRegexFileUri =
-      "org/mitre/medfacts/zoner/section_regex.xml";
-    AnalysisEngineDescription zonerAnnotator =
-        AnalysisEngineFactory.createEngineDescription(ZoneAnnotator.class,
-            ZoneAnnotator.PARAM_SECTION_REGEX_FILE_URI,
-            generalSectionRegexFileUri
-            );
-    builder.add(zonerAnnotator);
-
-    String mayoSectionRegexFileUri =
-      "org/mitre/medfacts/uima/mayo_sections.xml";
-    AnalysisEngineDescription mayoZonerAnnotator =
-        AnalysisEngineFactory.createEngineDescription(ZoneAnnotator.class,
-            ZoneAnnotator.PARAM_SECTION_REGEX_FILE_URI,
-            mayoSectionRegexFileUri
-            );
-    builder.add(mayoZonerAnnotator);
+//    String generalSectionRegexFileUri =
+//      "org/mitre/medfacts/zoner/section_regex.xml";
+//    AnalysisEngineDescription zonerAnnotator =
+//        AnalysisEngineFactory.createPrimitiveDescription(ZoneAnnotator.class,
+//            ZoneAnnotator.PARAM_SECTION_REGEX_FILE_URI,
+//            generalSectionRegexFileUri
+//            );
+//    builder.add(zonerAnnotator);
+//
+//    String mayoSectionRegexFileUri =
+//      "org/mitre/medfacts/uima/mayo_sections.xml";
+//    AnalysisEngineDescription mayoZonerAnnotator =
+//        AnalysisEngineFactory.createPrimitiveDescription(ZoneAnnotator.class,
+//            ZoneAnnotator.PARAM_SECTION_REGEX_FILE_URI,
+//            mayoSectionRegexFileUri
+//            );
+//    builder.add(mayoZonerAnnotator);
     
     AnalysisEngineDescription polarityAnnotator = AnalysisEngineFactory.createEngineDescription(PolarityCleartkAnalysisEngine.class);
//,  this.additionalParamemters);
     ConfigurationParameterFactory.addConfigurationParameters(



Mime
View raw message