@PipeBitInfo(name="Knowtator XML Reader (THYME)", description="Reads annotations from THYME schema Knowtator XML files in a directory.", role=SPECIAL, products={IDENTIFIED_ANNOTATION,EVENT,TIMEX,LOCATION_RELATION,DEGREE_RELATION,TEMPORAL_RELATION}) public class THYMEKnowtatorXMLReader extends SHARPKnowtatorXMLReader
Modifier and Type | Field and Description |
---|---|
protected File |
knowtatorXMLDirectory |
static String |
PARAM_KNOWTATOR_XML_DIRECTORY |
PARAM_SET_DEFAULTS, PARAM_TEXT_DIRECTORY
Constructor and Description |
---|
THYMEKnowtatorXMLReader() |
Modifier and Type | Method and Description |
---|---|
protected String[] |
getAnnotatorNames()
Returns the names of the annotators in the Knowtator files that represent the gold standard
|
static org.apache.uima.analysis_engine.AnalysisEngineDescription |
getDescription(File knowtatorXMLDirectory) |
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)
Just runs reader over files.
|
process
getLogger, initialize
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public static final String PARAM_KNOWTATOR_XML_DIRECTORY
protected File knowtatorXMLDirectory
public static org.apache.uima.analysis_engine.AnalysisEngineDescription getDescription(File knowtatorXMLDirectory) throws org.apache.uima.resource.ResourceInitializationException
org.apache.uima.resource.ResourceInitializationException
protected URI getTextURI(org.apache.uima.jcas.JCas jCas)
SHARPKnowtatorXMLReader
getTextURI
in class SHARPKnowtatorXMLReader
protected URI getKnowtatorURI(org.apache.uima.jcas.JCas jCas)
SHARPKnowtatorXMLReader
getKnowtatorURI
in class SHARPKnowtatorXMLReader
protected String[] getAnnotatorNames()
SHARPKnowtatorXMLReader
getAnnotatorNames
in class SHARPKnowtatorXMLReader
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.