public class JCoReUIMAPipeline extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CPE_AAE_DESC_NAME |
static String |
DIR_CONF |
static String |
DIR_DESC |
static String |
DIR_LIB |
static String |
JAR_CONF_FILES |
| Constructor and Description |
|---|
JCoReUIMAPipeline()
Empty constructur for creating a pipeline from scratch.
|
JCoReUIMAPipeline(File baseDirectory)
Set the pipeline base directory to later load the pipeline from.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCasMultiplier(Description multiplier)
Add a CAS multiplier to this pipeline.
|
void |
addCcDesc(Description ccDesc) |
void |
addDelegateAe(Description aeDesc)
Add an analysis engine to this pipeline.
|
void |
clear() |
org.apache.uima.analysis_engine.AnalysisEngineDescription |
getAaeCmDesc() |
org.apache.uima.analysis_engine.AnalysisEngineDescription |
getAaeDesc()
The single primitive analysis engine description or the aggregate analysis engine description of this pipeline.
|
List<Description> |
getAeDelegates()
Returns all analysis engines that have been added to the pipeline.
|
List<Description> |
getCcDelegates() |
org.apache.uima.resource.ResourceCreationSpecifier |
getCcDesc()
Returns the CAS consumer of this pipeline or null, if none is set.
|
String |
getClassPath() |
java.util.stream.Stream<File> |
getClasspathElements() |
List<Description> |
getCmDelegates() |
org.apache.uima.analysis_engine.AnalysisEngineDescription |
getCompleteAggregateDescription()
Returns an aggregate including CM, AE and CC.
|
Description |
getCrDescription() |
File |
getLoadDirectory() |
java.util.stream.Stream<Description> |
getMultipliers() |
java.util.stream.Stream<Description> |
getNonMultiplierAes() |
JCoReUIMAPipeline |
load(boolean forEditing)
Loads the pipeline from the file system.
|
void |
removeComponent(Description description)
Removes the given description and the maven artifacts associated with the component.
|
void |
setCrDescription(Description crDescription) |
void |
setLoadDirectory(File loadDirectory) |
void |
store(File directory) |
void |
storeArtifacts(File directory)
Stores the Maven artifacts in the lib/ directory directly beneath the given pipeline directory.
|
public static final String DIR_DESC
public static final String DIR_LIB
public static final String DIR_CONF
public static final String CPE_AAE_DESC_NAME
public static final String JAR_CONF_FILES
public JCoReUIMAPipeline(File baseDirectory)
Set the pipeline base directory to later load the pipeline from. It is expected that this directory has two subdirectories named "desc" and "lib", respectively. The first must contain the configured descriptors of collection reader, analysis engines (including CAS multipliers) and an optional CAS consumer. The latter must contain all the artifacts and transitive dependencies required to run the pipeline.
To actually load the pipeline, call load(boolean)
baseDirectory - The base directory where to find the subdirectories "desc" and "lib".load(boolean)public JCoReUIMAPipeline()
public java.util.stream.Stream<Description> getMultipliers()
public java.util.stream.Stream<Description> getNonMultiplierAes()
public Description getCrDescription()
public void setCrDescription(Description crDescription)
public org.apache.uima.analysis_engine.AnalysisEngineDescription getAaeDesc()
public List<Description> getCcDelegates()
public void addCcDesc(Description ccDesc)
public void store(File directory) throws PipelineIOException
PipelineIOExceptionpublic void storeArtifacts(File directory) throws MavenException
directory - MavenExceptionpublic File getLoadDirectory()
public void setLoadDirectory(File loadDirectory)
public JCoReUIMAPipeline load(boolean forEditing) throws PipelineIOException
PipelineIOException - If the pipeline cannot be loaded.public List<Description> getAeDelegates()
public void addDelegateAe(Description aeDesc)
aeDesc - The descriptor of an analysis engine.public void addCasMultiplier(Description multiplier)
multiplier - The descriptor of a CAS multiplier.public java.util.stream.Stream<File> getClasspathElements() throws PipelineIOException
PipelineIOExceptionpublic void removeComponent(Description description)
description - The description of the component to be removed.public String getClassPath() throws PipelineIOException
PipelineIOExceptionpublic org.apache.uima.analysis_engine.AnalysisEngineDescription getAaeCmDesc()
public org.apache.uima.resource.ResourceCreationSpecifier getCcDesc()
AnalysisEngineDescription or a CasConsumerDescription. If an AnalysisEngineDescription is
returned, it might be an aggregate.public List<Description> getCmDelegates()
public org.apache.uima.analysis_engine.AnalysisEngineDescription getCompleteAggregateDescription()
throws org.apache.uima.resource.ResourceInitializationException
org.apache.uima.resource.ResourceInitializationExceptionpublic void clear()
Copyright © 2018 JULIE Lab, Germany. All rights reserved.