Package org.apache.uima.util
Class AnalysisEngineUtils
java.lang.Object
org.apache.uima.util.AnalysisEngineUtils
Static utility methods relating to analysis engines.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic FSMatchConstraint
createOutputFilter
(AnalysisEngineMetaData aMetaData) Creates a FSMatchConstraint used when formatting the CAS for output.
-
Constructor Details
-
AnalysisEngineUtils
public AnalysisEngineUtils()
-
-
Method Details
-
createOutputFilter
Creates a FSMatchConstraint used when formatting the CAS for output. This constraint filters the feature structures in the CAS so that the only feature structures that are outputted are those of types specified in the Analysis Engine's capability specification.- Parameters:
aMetaData
- metadata for the text analysis engine that is producing the results to be filtered- Returns:
- the filter to be passed to
TCasFormatter.format(CAS,FSMatchConstraint)
.
-