File tree 1 file changed +3
-3
lines changed
itest/src/edu/stanford/nlp/dcoref
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 32
32
*/
33
33
public class DcorefBenchmarkSlowITest {
34
34
35
- private static String runCorefTest (boolean deleteOnExit ) throws Exception {
35
+ private static Counter < String > runCorefTest (boolean deleteOnExit ) throws Exception {
36
36
final File WORK_DIR_FILE = File .createTempFile ("DcorefBenchmarkTest" , "" );
37
37
if ( ! (WORK_DIR_FILE .delete () && WORK_DIR_FILE .mkdir ())) {
38
38
throw new RuntimeIOException ("Couldn't create temp directory " + WORK_DIR_FILE );
@@ -60,7 +60,7 @@ private static String runCorefTest(boolean deleteOnExit) throws Exception {
60
60
System .err .println ("LOG FILE: " + logFile );
61
61
62
62
String actualResults = IOUtils .slurpFile (logFile );
63
- return actualResults ;
63
+ return getCorefResults ( actualResults ) ;
64
64
}
65
65
66
66
@@ -145,7 +145,7 @@ public static Counter<String> getCorefResults(String resultsString) throws IOExc
145
145
146
146
@ Test
147
147
public void testDcoref () throws Exception {
148
- Counter <String > results = getCorefResults ( runCorefTest (true ) );
148
+ Counter <String > results = runCorefTest (true );
149
149
150
150
Counter <String > lowResults = new ClassicCounter <>();
151
151
Counter <String > highResults = new ClassicCounter <>();
You can’t perform that action at this time.
0 commit comments