Skip to content

Commit 935d2fa

Browse files
committedJun 18, 2024
Print out LOG FILE when printing the log file. Whitespace align some stuff
1 parent ce88c9c commit 935d2fa

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed
 

‎itest/src/edu/stanford/nlp/dcoref/DcorefBenchmarkSlowITest.java

+4-5
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,14 @@ private static String runCorefTest(boolean deleteOnExit) throws Exception {
4949
System.err.println("Current dir using System:" +currentDir);
5050

5151
String[] corefArgs = { "-props", "edu/stanford/nlp/dcoref/coref.properties",
52-
'-' + Constants.LOG_PROP, baseLogFile,
53-
'-' + Constants.CONLL_OUTPUT_PROP, WORK_DIR_FILE.toString() };
52+
'-' + Constants.LOG_PROP, baseLogFile,
53+
'-' + Constants.CONLL_OUTPUT_PROP, WORK_DIR_FILE.toString() };
5454

5555
Properties props = StringUtils.argsToProperties(corefArgs);
56-
System.err.println("Running dcoref with properties:");
57-
System.err.println(props);
56+
System.err.println("Running dcoref with properties:\n" + props);
5857

5958
String logFile = SieveCoreferenceSystem.initializeAndRunCoref(props);
60-
System.err.println(logFile);
59+
System.err.println("LOG FILE: " + logFile);
6160

6261
String actualResults = IOUtils.slurpFile(logFile);
6362
return actualResults;

‎src/edu/stanford/nlp/dcoref/SieveCoreferenceSystem.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -347,13 +347,13 @@ public static String initializeAndRunCoref(Properties props) throws Exception {
347347
MentionExtractor mentionExtractor;
348348
if (props.containsKey(Constants.MUC_PROP)){
349349
mentionExtractor = new MUCMentionExtractor(corefSystem.dictionaries, props,
350-
corefSystem.semantics, corefSystem.singletonPredictor);
350+
corefSystem.semantics, corefSystem.singletonPredictor);
351351
} else if(props.containsKey(Constants.ACE2004_PROP) || props.containsKey(Constants.ACE2005_PROP)) {
352352
mentionExtractor = new ACEMentionExtractor(corefSystem.dictionaries, props,
353-
corefSystem.semantics, corefSystem.singletonPredictor);
353+
corefSystem.semantics, corefSystem.singletonPredictor);
354354
} else if (props.containsKey(Constants.CONLL2011_PROP)) {
355355
mentionExtractor = new CoNLLMentionExtractor(corefSystem.dictionaries, props,
356-
corefSystem.semantics, corefSystem.singletonPredictor);
356+
corefSystem.semantics, corefSystem.singletonPredictor);
357357
} else {
358358
throw new RuntimeException("No input file specified!");
359359
}

0 commit comments

Comments
 (0)