public final class PiperFileReader extends Object
There are several basic commands:
package user_package_name
load path_to_another_pipeline_file
set ae_parameter_name=ae_parameter_value e_parameter_name=ae_parameter_value ...
cli ae_parameter_name=cli_parameter_char e_parameter_name=cli_parameter_char ...
reader collection_reader_class_name
readFiles input_directory
input_directory can be empty if
ConfigParameterConstants.PARAM_INPUTDIR
("InputDirectory") was specified
add ae_or_cc_class_name ae_parameter_name=ae_parameter_value e_parameter_name<=ae_parameter_value ...
addLogged ae_or_cc_class_name ae_parameter_name=ae_parameter_value e_parameter_name=ae_parameter_value ...
addDescription ae_or_cc_class_name
addLast ae_or_cc_class_name
collectCuis
collectEntities
writeXmis output_directory
output_directory can be empty if
XmiWriterCasConsumerCtakes.PARAM_OUTPUTDIR
("OutputDirectory") was specified
// and # and ! may be used to mark line comments
Constructor and Description |
---|
PiperFileReader()
Create and empty PipelineReader
|
PiperFileReader(String filePath)
Create a PipelineReader and load a file with command parameter pairs for building a pipeline
|
PiperFileReader(String filePath,
CliOptionals cliOptionals)
Create a PipelineReader and load a file with command parameter pairs for building a pipeline
|
Modifier and Type | Method and Description |
---|---|
PipelineBuilder |
getBuilder() |
boolean |
loadPipelineFile(String filePath)
Load a file with command parameter pairs for building a pipeline
|
boolean |
parsePipelineLine(String line) |
void |
setCliOptionals(CliOptionals cliOptionals) |
public PiperFileReader()
public PiperFileReader(String filePath) throws org.apache.uima.UIMAException
filePath
- path to the pipeline command fileorg.apache.uima.UIMAException
- if the pipeline cannot be loadedpublic PiperFileReader(String filePath, CliOptionals cliOptionals) throws org.apache.uima.UIMAException
filePath
- path to the pipeline command filecliOptionals
- command line options pre-definedorg.apache.uima.UIMAException
- if the pipeline cannot be loadedpublic void setCliOptionals(CliOptionals cliOptionals)
public boolean loadPipelineFile(String filePath) throws org.apache.uima.UIMAException
filePath
- path to the pipeline command fileorg.apache.uima.UIMAException
public boolean parsePipelineLine(String line) throws org.apache.uima.UIMAException
org.apache.uima.UIMAException
public PipelineBuilder getBuilder()
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.