public class ViewCreatorAnnotator extends JCasAnnotator_ImplBase
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_VIEW_NAME
The parameter name for the name of the viewed to be created by this annotator
|
Constructor and Description |
---|
ViewCreatorAnnotator() |
Modifier and Type | Method and Description |
---|---|
static JCas |
createViewSafely(JCas aJCas,
String aViewName)
Provides a simple call that allows you to safely create a view if it has not been created yet.
|
void |
process(JCas aJCas) |
initialize
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
batchProcessComplete, collectionProcessComplete, destroy, getContext, getLogger, getResultSpecification, reconfigure, setResultSpecification
public static final String PARAM_VIEW_NAME
public void process(JCas aJCas) throws AnalysisEngineProcessException
process
in class JCasAnnotator_ImplBase
AnalysisEngineProcessException
public static JCas createViewSafely(JCas aJCas, String aViewName) throws AnalysisEngineProcessException
aJCas
- the JCas
to create the view inaViewName
- the name of the new viewAnalysisEngineProcessException
- if the view could not be created or if an existing view with the given name could not
be accessedCopyright © 2012–2020 The Apache Software Foundation. All rights reserved.