ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tm...@apache.org
Subject svn commit: r1636377 - /ctakes/trunk/ctakes-clinical-pipeline/src/main/java/org/apache/ctakes/clinicalpipeline/ClinicalPipelineFactory.java
Date Mon, 03 Nov 2014 15:46:13 GMT
Author: tmill
Date: Mon Nov  3 15:46:13 2014
New Revision: 1636377

URL: http://svn.apache.org/r1636377
Log:
Added parsing pipeline to pipeline factory.

Modified:
    ctakes/trunk/ctakes-clinical-pipeline/src/main/java/org/apache/ctakes/clinicalpipeline/ClinicalPipelineFactory.java

Modified: ctakes/trunk/ctakes-clinical-pipeline/src/main/java/org/apache/ctakes/clinicalpipeline/ClinicalPipelineFactory.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-clinical-pipeline/src/main/java/org/apache/ctakes/clinicalpipeline/ClinicalPipelineFactory.java?rev=1636377&r1=1636376&r2=1636377&view=diff
==============================================================================
--- ctakes/trunk/ctakes-clinical-pipeline/src/main/java/org/apache/ctakes/clinicalpipeline/ClinicalPipelineFactory.java
(original)
+++ ctakes/trunk/ctakes-clinical-pipeline/src/main/java/org/apache/ctakes/clinicalpipeline/ClinicalPipelineFactory.java
Mon Nov  3 15:46:13 2014
@@ -32,6 +32,7 @@ import org.apache.ctakes.assertion.medfa
 import org.apache.ctakes.assertion.medfacts.cleartk.UncertaintyCleartkAnalysisEngine;
 import org.apache.ctakes.chunker.ae.Chunker;
 import org.apache.ctakes.chunker.ae.adjuster.ChunkAdjuster;
+import org.apache.ctakes.constituency.parser.ae.ConstituencyParser;
 import org.apache.ctakes.contexttokenizer.ae.ContextDependentTokenizerAnnotator;
 import org.apache.ctakes.core.ae.SentenceDetector;
 import org.apache.ctakes.core.ae.SimpleSegmentAnnotator;
@@ -106,10 +107,12 @@ public class ClinicalPipelineFactory {
     return builder.createAggregateDescription();
   }
   
-  // TODO
-  public static AnalysisEngineDescription getParsingPipeline(){
+  public static AnalysisEngineDescription getParsingPipeline() throws ResourceInitializationException{
     AggregateBuilder builder = new AggregateBuilder();
-    throw new UnsupportedOperationException("Not yet implemented!");
+    builder.add(getTokenProcessingPipeline());
+    builder.add(ClearNLPDependencyParserAE.createAnnotatorDescription());
+    builder.add(AnalysisEngineFactory.createEngineDescription(ConstituencyParser.class));
+    return builder.createAggregateDescription();
   }
   
   public static AnalysisEngineDescription getTokenProcessingPipeline() throws ResourceInitializationException
{



Mime
View raw message