@PipeBitInfo(name="Gold View Merger", description="Read in gold annotations from XMI and create a view within the current CAS, and copy the gold annotations into the new view within the current CAS.", role=SPECIAL, dependencies=DOCUMENT_ID, products=IDENTIFIED_ANNOTATION) public class MergeGoldViewFromOneCasIntoInitialViewOfAnotherCas extends org.apache.uima.fit.component.JCasAnnotator_ImplBase
Constructor and Description |
---|
MergeGoldViewFromOneCasIntoInitialViewOfAnotherCas() |
Modifier and Type | Method and Description |
---|---|
static org.apache.uima.collection.CollectionReader |
getCollectionReader(List<File> items) |
void |
initialize(org.apache.uima.UimaContext context) |
void |
process(org.apache.uima.jcas.JCas jCas)
Copy all annotations of the given types from the corresponding cas that has a gold view to the current cas
|
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public MergeGoldViewFromOneCasIntoInitialViewOfAnotherCas()
public void initialize(org.apache.uima.UimaContext context) throws org.apache.uima.resource.ResourceInitializationException
initialize
in interface org.apache.uima.analysis_component.AnalysisComponent
initialize
in class org.apache.uima.fit.component.JCasAnnotator_ImplBase
org.apache.uima.resource.ResourceInitializationException
public void process(org.apache.uima.jcas.JCas jCas) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
process
in class org.apache.uima.analysis_component.JCasAnnotator_ImplBase
org.apache.uima.analysis_engine.AnalysisEngineProcessException
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.