ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chen...@apache.org
Subject svn commit: r1714699 - /ctakes/trunk/ctakes-clinical-pipeline/src/main/java/org/apache/ctakes/clinicalpipeline/ClinicalPipelineFactory.java
Date Mon, 16 Nov 2015 22:35:57 GMT
Author: chenpei
Date: Mon Nov 16 22:35:57 2015
New Revision: 1714699

URL: http://svn.apache.org/viewvc?rev=1714699&view=rev
Log:
CTAKES-388 - Thanks Lewis John McGibbney for the Patch.

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=1714699&r1=1714698&r2=1714699&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 16 22:35:57 2015
@@ -53,6 +53,7 @@ import org.xml.sax.SAXException;
 
 import java.io.FileWriter;
 import java.io.IOException;
+import java.net.MalformedURLException;
 import java.util.*;
 
 final public class ClinicalPipelineFactory {
@@ -60,7 +61,7 @@ final public class ClinicalPipelineFacto
    private ClinicalPipelineFactory() {
    }
 
-   public static AnalysisEngineDescription getDefaultPipeline() throws ResourceInitializationException
{
+   public static AnalysisEngineDescription getDefaultPipeline() throws ResourceInitializationException,
MalformedURLException{
       AggregateBuilder builder = new AggregateBuilder();
       builder.add( getTokenProcessingPipeline() );
       builder.add( getNpChunkerPipeline() );
@@ -77,7 +78,7 @@ final public class ClinicalPipelineFacto
       return builder.createAggregateDescription();
    }
 
-   public static AnalysisEngineDescription getFastPipeline() throws ResourceInitializationException
{
+   public static AnalysisEngineDescription getFastPipeline() throws ResourceInitializationException,
MalformedURLException {
       AggregateBuilder builder = new AggregateBuilder();
       builder.add( getTokenProcessingPipeline() );
       builder.add( DefaultJCasTermAnnotator.createAnnotatorDescription() );
@@ -91,7 +92,7 @@ final public class ClinicalPipelineFacto
       return builder.createAggregateDescription();
    }
 
-   public static AnalysisEngineDescription getParsingPipeline() throws ResourceInitializationException
{
+   public static AnalysisEngineDescription getParsingPipeline() throws ResourceInitializationException,
MalformedURLException {
       AggregateBuilder builder = new AggregateBuilder();
       builder.add( getTokenProcessingPipeline() );
       builder.add( ClearNLPDependencyParserAE.createAnnotatorDescription() );
@@ -99,7 +100,7 @@ final public class ClinicalPipelineFacto
       return builder.createAggregateDescription();
    }
 
-   public static AnalysisEngineDescription getTokenProcessingPipeline() throws ResourceInitializationException
{
+   public static AnalysisEngineDescription getTokenProcessingPipeline() throws ResourceInitializationException,
MalformedURLException {
       AggregateBuilder builder = new AggregateBuilder();
       builder.add( SimpleSegmentAnnotator.createAnnotatorDescription() );
       builder.add( SentenceDetector.createAnnotatorDescription() );



Mime
View raw message