@PipeBitInfo(name="Knowtator XML Reader (SHARP)", description="Reads annotations from SHARP schema Knowtator XML files in a directory.", role=SPECIAL, products={IDENTIFIED_ANNOTATION,EVENT,TIMEX,LOCATION_RELATION,DEGREE_RELATION,TEMPORAL_RELATION}) public class SHARPKnowtatorXMLReader 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 |
---|
SHARPKnowtatorXMLReader() |
Modifier and Type | Method and Description |
---|---|
protected 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)
protected URI getKnowtatorURI(org.apache.uima.jcas.JCas jCas)
URISyntaxException
protected 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
getKnowtatorURI(org.apache.uima.jcas.JCas)
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.