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,
String version) |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
Annotation |
read(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, String version)
public Annotation read(String path) throws IOException, SAXException, 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. *IOException
SAXException
ParserConfigurationException
public static void main(String[] args) throws IOException
IOException