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, setUseNewHeadFinderpublic 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 GenericDataSetReaderpath - 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.IOExceptionorg.xml.sax.SAXExceptionjavax.xml.parsers.ParserConfigurationExceptionpublic static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOException