public class AceReader extends GenericDataSetReader
calculateHeadSpan, forceGenerationOfIndexSpans, headFinder, logger, parserProcessor, preProcessSentences, processor, useNewHeadFinder
Constructor and Description |
---|
AceReader()
Make an AceReader.
|
AceReader(StanfordCoreNLP processor,
boolean preprocess) |
AceReader(StanfordCoreNLP processor,
boolean preprocess,
java.lang.String version) |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args) |
Annotation |
read(java.lang.String path)
Reads in ACE*.apf.xml files and converts them to RelationSentence objects.
|
assignSyntacticHead, convertToCoreLabels, findSyntacticHead, getLoggerLevel, getParser, originalFindSyntacticHead, parse, parse, parse, parseStrings, preProcessSentences, setLoggerLevel, setProcessor, setUseNewHeadFinder
public AceReader()
public AceReader(StanfordCoreNLP processor, boolean preprocess)
public AceReader(StanfordCoreNLP processor, boolean preprocess, java.lang.String version)
public Annotation read(java.lang.String path) throws java.io.IOException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException
read
in class GenericDataSetReader
path
- directory containing ACE files to read (e.g.
"/home/mcclosky/scr/data/ACE2005/english_test"). This can also be
the path to a single file. *java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException