List of usage examples for edu.stanford.nlp.ie.machinereading.domains.ace AceReader AceReader
public AceReader(StanfordCoreNLP processor, boolean preprocess, String version)
From source file:knu.univ.lingvo.coref.ACEMentionExtractor.java
License:Open Source License
public ACEMentionExtractor(Dictionaries dict, Properties props, Semantics semantics) throws Exception { super(dict, semantics); stanfordProcessor = loadStanfordProcessor(props); if (props.containsKey(Constants.ACE2004_PROP)) { corpusPath = props.getProperty(Constants.ACE2004_PROP); aceReader = new AceReader(stanfordProcessor, false, "ACE2004"); } else if (props.containsKey(Constants.ACE2005_PROP)) { corpusPath = props.getProperty(Constants.ACE2005_PROP); aceReader = new AceReader(stanfordProcessor, false); }// w ww . java2 s. c o m aceReader.setLoggerLevel(Level.INFO); if (corpusPath.charAt(corpusPath.length() - 1) != File.separatorChar) corpusPath += File.separatorChar; files = new File(corpusPath).list(); }