Package org.apache.uima.fit.component
Class ViewTextCopierAnnotator
java.lang.Object
org.apache.uima.analysis_component.AnalysisComponent_ImplBase
org.apache.uima.analysis_component.Annotator_ImplBase
org.apache.uima.analysis_component.JCasAnnotator_ImplBase
org.apache.uima.fit.component.JCasAnnotator_ImplBase
org.apache.uima.fit.component.ViewTextCopierAnnotator
- All Implemented Interfaces:
- AnalysisComponent
This annotator will copy the text of one view to another view. It is required that source view
 already exists. If the destination view does not yet exist, then it will be created. A use case
 for this analysis engine is when you have a "gold view" which is populated with text and
 gold-standard annotations. Now you want to run your system/pipeline on a "system view" so that at
 the end you can compare the annotations in the system view with those in the gold view. It is
 convenient to have an annotator that simply copies the text from the gold view to the system view
 before running a pipeline on the system view.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class org.apache.uima.fit.component.JCasAnnotator_ImplBaseinitializeMethods inherited from class org.apache.uima.analysis_component.JCasAnnotator_ImplBasegetRequiredCasInterface, processMethods inherited from class org.apache.uima.analysis_component.Annotator_ImplBasegetCasInstancesRequired, hasNext, nextMethods inherited from class org.apache.uima.analysis_component.AnalysisComponent_ImplBasebatchProcessComplete, collectionProcessComplete, destroy, getContext, getLogger, getResultSpecification, reconfigure, setResultSpecification
- 
Field Details- 
PARAM_SOURCE_VIEW_NAMEThe parameter name for the name of the source view- See Also:
 
- 
PARAM_DESTINATION_VIEW_NAMEThe parameter name for the name of the destination view- See Also:
 
 
- 
- 
Constructor Details- 
ViewTextCopierAnnotatorpublic ViewTextCopierAnnotator()
 
- 
- 
Method Details- 
processDescription copied from class:JCasAnnotator_ImplBaseThis method should be overriden by subclasses. Inputs a JCAS to the AnalysisComponent. The AnalysisComponent "owns" this JCAS until such time asAnnotator_ImplBase.hasNext()is called and returns false (seeAnalysisComponentfor details).- Specified by:
- processin class- JCasAnnotator_ImplBase
- Parameters:
- jCas- a JCAS that this AnalysisComponent should process.
- Throws:
- AnalysisEngineProcessException- if a problem occurs during processing
 
 
-