Search in sources :

Example 1 with ACEReader

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);
}
Also used : ACEReader(edu.illinois.cs.cogcomp.nlp.corpusreaders.ACEReader) Test(org.junit.Test)

Example 2 with ACEReader

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());
}
Also used : ACEReader(edu.illinois.cs.cogcomp.nlp.corpusreaders.ACEReader) XMLException(edu.illinois.cs.cogcomp.nlp.corpusreaders.aceReader.XMLException) Test(org.junit.Test)

Example 3 with ACEReader

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);
}
Also used : ACEReader(edu.illinois.cs.cogcomp.nlp.corpusreaders.ACEReader) Test(org.junit.Test)

Example 4 with ACEReader

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);
}
Also used : ACEReader(edu.illinois.cs.cogcomp.nlp.corpusreaders.ACEReader) Test(org.junit.Test)

Aggregations

ACEReader (edu.illinois.cs.cogcomp.nlp.corpusreaders.ACEReader)4 Test (org.junit.Test)4 XMLException (edu.illinois.cs.cogcomp.nlp.corpusreaders.aceReader.XMLException)1