-
Notifications
You must be signed in to change notification settings - Fork 22
PiperFileReader
Creates a pipeline (PipelineBuilder) from specifications in a flat plaintext file.
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 {@link org.apache.ctakes.core.config.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 ("OutputDirectory") was specified // and # and ! may be used to mark line comments
class names must be fully-specified with package unless they are in standard ctakes cr ae or cc packages, or in a package specified by an earlier package command.
- Author: SPF , chip-nlp
- Version: %I%
-
Since: 10/10/2016
Create and empty PipelineReader
Create a PipelineReader and load a file with command parameter pairs for building a pipeline
-
Parameters:
-
filePathpath to the pipeline command file
-
-
Exceptions:
-
UIMAExceptionif the pipeline cannot be loaded
-
public PiperFileReader( final String filePath, final CliOptionals cliOptionals ) throws UIMAException
Create a PipelineReader and load a file with command parameter pairs for building a pipeline
-
Parameters:
-
filePathpath to the pipeline command file -
cliOptionalscommand line options pre-defined
-
-
Exceptions:
-
UIMAExceptionif the pipeline cannot be loaded
-
Load a file with command parameter pairs for building a pipeline
-
Parameters:
-
filePathpath to the pipeline command file
-
-
Returns: the PipelineBuilder with its current state set by this PipelineReader
-
Parameters:
-
commandspecified by first word in the file line -
parameterspecified by second word in the file line
-
- Returns: true if the command and parameters are valid
-
Exceptions:
-
UIMAExceptionif the command could not be executed
-
-
Parameters:
-
filePathfully-specified or simple path of a piper file
-
-
Returns: discovered path for the piper file
-
Parameters:
-
text-
-
-
Returns: true if there is more than one word in the text
-
Parameters:
-
texttext with more than one word
-
-
Returns: an array of two strings, [0]= the first word, [1]= the remaining words separated by spaces
-
Parameters:
-
text-
-
-
Returns: array created by splitting text ' ' and then at '=' characters
-
Parameters:
-
text-
-
-
Returns: array created by splitting text ' ' and then at '=' characters
-
Parameters:
-
text-
-
-
Returns: any specifications of views
-
Parameters:
-
text- -
viewSpecs-
-
-
Returns: the text with all viewSpec texts removed
-
Parameters:
-
viewSpecs-
-
-
Returns: views listed in view specs
Since uimafit parameter values can be integers, check for an integer value
-
Parameters:
-
valueString value parsed from file
-
-
Returns: the value as an Integer, or the original String if an Integer could not be resolved
Since uimafit parameter values can be boolean, check for a boolean value
-
Parameters:
-
valueString value parsed from file
-
-
Returns: the value as a Boolean, or the original String if it is not "true" or "false", case insensitive
-
Parameters:
-
valueString value parsed from file
-
-
Returns: true if there are any comma characters in the value, denoting an array
-
Parameters:
-
valueString value parsed from file
-
- Returns: an array of String
- Java API
- Running a Pipeline
- Working with Data
- Utilities
- Text Searching
patient
AbstractPatientConsumer
AbstractPatientFileWriter
PatientNoteCollector
PatientNoteStore
PatientViewUtil
pipeline
PipeBitLocator
PipelineBuilder
PiperFileReader
PiperFileRunner
resource
FileLocator
util
CalendarUtil
MutableUimaContext
NumberedSuffixComparator
Pair
RelationArgumentUtil
StringUtil
annotation
ConceptBuilder
EssentialAnnotationUtil
IdentifiedAnnotationBuilder
IdentifiedAnnotationUtil
OntologyConceptUtil
SemanticGroup
SemanticTui
doc
DocIdUtil
JCasBuilder
TextBySectionBuilder
TextBySentenceBuilder
log
DotLogger
FinishedLogger
regex
RegexSpanFinder
TimeoutMatcher
textspan
DefaultAspanComparator
DefaultTextSpanComparator
DefaultTextSpan
TextSpan
