@PipeBitInfo(name="Knowtator XML Reader (MiPACQ)", description="Reads annotations from MiPACQ schema Knowtator XML files in a directory.", role=SPECIAL, products={IDENTIFIED_ANNOTATION,GENERIC_RELATION}) public class MiPACQKnowtatorXMLReader extends org.apache.uima.fit.component.JCasAnnotator_ImplBase
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_SET_DEFAULTS |
static String |
PARAM_TEXT_DIRECTORY |
Constructor and Description |
---|
MiPACQKnowtatorXMLReader() |
Modifier and Type | Method and Description |
---|---|
protected static String[] |
getAnnotatorNames()
Returns the names of the annotators in the Knowtator files that represent the gold standard
|
protected URI |
getKnowtatorURI(org.apache.uima.jcas.JCas jCas)
Get the URI for the Knowtator XML file that should be loaded
|
protected URI |
getTextURI(org.apache.uima.jcas.JCas jCas)
Get the URI that the text in this class was loaded from
|
static void |
main(String[] args)
This main method is only for testing purposes.
|
void |
process(org.apache.uima.jcas.JCas jCas) |
getLogger, initialize
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public static final String PARAM_TEXT_DIRECTORY
public static final String PARAM_SET_DEFAULTS
protected URI getTextURI(org.apache.uima.jcas.JCas jCas) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
org.apache.uima.analysis_engine.AnalysisEngineProcessException
protected URI getKnowtatorURI(org.apache.uima.jcas.JCas jCas) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
org.apache.uima.analysis_engine.AnalysisEngineProcessException
protected static String[] getAnnotatorNames()
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
public static void main(String[] args) throws Exception
Exception
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.