ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stevenbeth...@apache.org
Subject svn commit: r1457053 - in /incubator/ctakes/trunk/ctakes-relation-extractor: desc/analysis_engine/RelationExtractorAggregate.xml src/main/java/org/apache/ctakes/relationextractor/pipelines/RelationExtractorTrain.java
Date Fri, 15 Mar 2013 18:34:12 GMT
Author: stevenbethard
Date: Fri Mar 15 18:34:12 2013
New Revision: 1457053

URL: http://svn.apache.org/r1457053
Log:
Stops adding type system to relation extraction aggregate descriptor

Modified:
    incubator/ctakes/trunk/ctakes-relation-extractor/desc/analysis_engine/RelationExtractorAggregate.xml
    incubator/ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/pipelines/RelationExtractorTrain.java

Modified: incubator/ctakes/trunk/ctakes-relation-extractor/desc/analysis_engine/RelationExtractorAggregate.xml
URL: http://svn.apache.org/viewvc/incubator/ctakes/trunk/ctakes-relation-extractor/desc/analysis_engine/RelationExtractorAggregate.xml?rev=1457053&r1=1457052&r2=1457053&view=diff
==============================================================================
--- incubator/ctakes/trunk/ctakes-relation-extractor/desc/analysis_engine/RelationExtractorAggregate.xml
(original)
+++ incubator/ctakes/trunk/ctakes-relation-extractor/desc/analysis_engine/RelationExtractorAggregate.xml
Fri Mar 15 18:34:12 2013
@@ -459,11 +459,6 @@
                 <node>EntityMentionPairRelationExtractorAnnotator</node>
             </fixedFlow>
         </flowConstraints>
-        <typeSystemDescription>
-            <imports>
-                <import name="org.apache.ctakes.typesystem.types.TypeSystem"/>
-            </imports>
-        </typeSystemDescription>
         <capabilities/>
         <operationalProperties>
             <modifiesCas>true</modifiesCas>

Modified: incubator/ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/pipelines/RelationExtractorTrain.java
URL: http://svn.apache.org/viewvc/incubator/ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/pipelines/RelationExtractorTrain.java?rev=1457053&r1=1457052&r2=1457053&view=diff
==============================================================================
--- incubator/ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/pipelines/RelationExtractorTrain.java
(original)
+++ incubator/ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/pipelines/RelationExtractorTrain.java
Fri Mar 15 18:34:12 2013
@@ -228,6 +228,9 @@ public class RelationExtractorTrain {
       File descDir,
       Class<?> annotatorClass,
       AnalysisEngineDescription desc) throws SAXException, IOException {
+    // set the type system (uimaFIT expands all imports, so this simplifies the descriptor)
+    desc.getAnalysisEngineMetaData().setTypeSystem(TypeSystemDescriptionFactory.createTypeSystemDescription(
+        "org.apache.ctakes.typesystem.types.TypeSystem"));
     writeDesc(descDir, annotatorClass.getSimpleName(), desc);
   }
 
@@ -235,9 +238,6 @@ public class RelationExtractorTrain {
       throws SAXException, IOException {
     // set the name (not done by uimaFIT)
     desc.getMetaData().setName(name);
-    // set the type system (uimaFIT expands all imports, so this simplifies the descriptor)
-    desc.getAnalysisEngineMetaData().setTypeSystem(TypeSystemDescriptionFactory.createTypeSystemDescription(
-        "org.apache.ctakes.typesystem.types.TypeSystem"));
     File descFile = new File(descDir, name + ".xml");
     System.out.println("writing description to " + descFile);
     FileOutputStream output = new FileOutputStream(descFile);



Mime
View raw message