You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ctakes.apache.org by se...@apache.org on 2017/02/24 16:33:57 UTC

svn commit: r1784294 - /ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/pipeline/PipelineBuilder.java

Author: seanfinan
Date: Fri Feb 24 16:33:57 2017
New Revision: 1784294

URL: http://svn.apache.org/viewvc?rev=1784294&view=rev
Log:
Added getAnalysisEngineDesc method

Modified:
    ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/pipeline/PipelineBuilder.java

Modified: ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/pipeline/PipelineBuilder.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/pipeline/PipelineBuilder.java?rev=1784294&r1=1784293&r2=1784294&view=diff
==============================================================================
--- ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/pipeline/PipelineBuilder.java (original)
+++ ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/pipeline/PipelineBuilder.java Fri Feb 24 16:33:57 2017
@@ -254,8 +254,8 @@ final public class PipelineBuilder {
     * A pipeline can be extended between builds, but the full pipeline will be rebuilt on each call.
     * Use of this method is order-specific.
     * @return this PipelineBuilder
-    * @throws IOException   if the pipeline could not be run
-    * @throws UIMAException if the pipeline could not be run
+    * @throws IOException   if the pipeline could not be built
+    * @throws UIMAException if the pipeline could not be built
     */
    public PipelineBuilder build() throws IOException, UIMAException {
       if ( _analysisEngineDesc == null || _pipelineChanged ) {
@@ -309,5 +309,14 @@ final public class PipelineBuilder {
       return this;
    }
 
+   /**
+    * @return an analysis engine description, for use in creating xml descriptor files, etc.
+    * @throws IOException   if the description could not be built
+    * @throws UIMAException if the description could not be built
+    */
+   public AnalysisEngineDescription getAnalysisEngineDesc() throws IOException, UIMAException {
+      build();
+      return _analysisEngineDesc;
+   }
 
 }