ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dlig...@apache.org
Subject svn commit: r1485214 - /ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/pipelines/GoldEntityAndRelationReaderPipeline.java
Date Wed, 22 May 2013 14:02:21 GMT
Author: dligach
Date: Wed May 22 14:02:21 2013
New Revision: 1485214

URL: http://svn.apache.org/r1485214
Log:
removed a hardcoded path; removed explicit type system mentions

Modified:
    ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/pipelines/GoldEntityAndRelationReaderPipeline.java

Modified: ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/pipelines/GoldEntityAndRelationReaderPipeline.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/pipelines/GoldEntityAndRelationReaderPipeline.java?rev=1485214&r1=1485213&r2=1485214&view=diff
==============================================================================
--- ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/pipelines/GoldEntityAndRelationReaderPipeline.java
(original)
+++ ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/pipelines/GoldEntityAndRelationReaderPipeline.java
Wed May 22 14:02:21 2013
@@ -27,12 +27,10 @@ import org.apache.ctakes.relationextract
 import org.apache.uima.UIMAException;
 import org.apache.uima.analysis_engine.AnalysisEngineDescription;
 import org.apache.uima.collection.CollectionReaderDescription;
-import org.apache.uima.resource.metadata.TypeSystemDescription;
 import org.kohsuke.args4j.Option;
 import org.uimafit.component.xwriter.XWriter;
 import org.uimafit.factory.AnalysisEngineFactory;
 import org.uimafit.factory.CollectionReaderFactory;
-import org.uimafit.factory.TypeSystemDescriptionFactory;
 import org.uimafit.pipeline.SimplePipeline;
 
 /**
@@ -60,8 +58,8 @@ public class GoldEntityAndRelationReader
   @Option(name = "-o",
       aliases = "--outputRoot",
       usage = "specify the directory to write out CAS XMI files",
-      required = false)
-  public File outputRoot = new File("target/out/xmi/");
+      required = true)
+  public File outputRoot;
 
   public static void main(String[] args) throws UIMAException, IOException {
 	
@@ -72,24 +70,18 @@ public class GoldEntityAndRelationReader
     File xmlRoot = options.xmlRoot;
     File outputRoot = options.outputRoot;
 
-	  TypeSystemDescription typeSystemDescription = TypeSystemDescriptionFactory.createTypeSystemDescriptionFromPath(
-	      "/home/dima/workspaces/ctakes/ctakes-type-system/desc/common_type_system.xml");
-
 	  CollectionReaderDescription collectionReader = CollectionReaderFactory.createDescription(
 	      FilesInDirectoryCollectionReader.class,
-	      typeSystemDescription,
 	      "InputDirectory",
 	      textRoot.getPath());
 
 	  AnalysisEngineDescription goldAnnotator = AnalysisEngineFactory.createPrimitiveDescription(
 	      GoldEntityAndRelationReader.class,
-	      typeSystemDescription,
 	      "InputDirectory",
 	      xmlRoot.getPath());
 
 	  AnalysisEngineDescription xWriter = AnalysisEngineFactory.createPrimitiveDescription(
 	      XWriter.class,
-	      typeSystemDescription,
 	      XWriter.PARAM_OUTPUT_DIRECTORY_NAME,
 	      outputRoot.getPath());
 



Mime
View raw message