use of edu.illinois.cs.cogcomp.nlp.corpusreaders.ACEReader in project cogcomp-nlp by CogComp.
the class ACEReaderParseTest method test2004Dataset.
@Test
public void test2004Dataset() throws Exception {
String corpusHomeDir = ACE2004CORPUS;
ACEReader reader = new ACEReader(corpusHomeDir, true);
testReaderParse(reader, corpusHomeDir, 1);
}
use of edu.illinois.cs.cogcomp.nlp.corpusreaders.ACEReader in project cogcomp-nlp by CogComp.
the class ACEReaderParseTest method testAce2005.
@Test
public void testAce2005() {
boolean is2004 = false;
ACEReader reader = null;
try {
reader = new ACEReader(ACE2005CORPUS, is2004);
} catch (Exception e) {
e.printStackTrace();
fail(e.getMessage());
}
assertTrue(reader.hasNext());
}
use of edu.illinois.cs.cogcomp.nlp.corpusreaders.ACEReader in project cogcomp-nlp by CogComp.
the class ACEReaderParseTest method test2005Dataset.
@Test
public void test2005Dataset() throws Exception {
String corpusHomeDir = ACE2005CORPUS;
ACEReader reader = new ACEReader(corpusHomeDir, false);
testReaderParse(reader, corpusHomeDir, 1);
}
use of edu.illinois.cs.cogcomp.nlp.corpusreaders.ACEReader in project cogcomp-nlp by CogComp.
the class ACEReaderParseTest method testReaderReset.
@Test
public void testReaderReset() throws Exception {
String corpusHomeDir = ACE2004CORPUS;
ACEReader reader = new ACEReader(corpusHomeDir, true);
testReaderParse(reader, corpusHomeDir, 1);
reader.reset();
testReaderParse(reader, corpusHomeDir, 1);
}
Aggregations