File tree 2 files changed +7
-8
lines changed
itest/src/edu/stanford/nlp/dcoref
src/edu/stanford/nlp/dcoref
2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -49,15 +49,14 @@ private static String runCorefTest(boolean deleteOnExit) throws Exception {
49
49
System .err .println ("Current dir using System:" +currentDir );
50
50
51
51
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 () };
54
54
55
55
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 );
58
57
59
58
String logFile = SieveCoreferenceSystem .initializeAndRunCoref (props );
60
- System .err .println (logFile );
59
+ System .err .println ("LOG FILE: " + logFile );
61
60
62
61
String actualResults = IOUtils .slurpFile (logFile );
63
62
return actualResults ;
Original file line number Diff line number Diff line change @@ -347,13 +347,13 @@ public static String initializeAndRunCoref(Properties props) throws Exception {
347
347
MentionExtractor mentionExtractor ;
348
348
if (props .containsKey (Constants .MUC_PROP )){
349
349
mentionExtractor = new MUCMentionExtractor (corefSystem .dictionaries , props ,
350
- corefSystem .semantics , corefSystem .singletonPredictor );
350
+ corefSystem .semantics , corefSystem .singletonPredictor );
351
351
} else if (props .containsKey (Constants .ACE2004_PROP ) || props .containsKey (Constants .ACE2005_PROP )) {
352
352
mentionExtractor = new ACEMentionExtractor (corefSystem .dictionaries , props ,
353
- corefSystem .semantics , corefSystem .singletonPredictor );
353
+ corefSystem .semantics , corefSystem .singletonPredictor );
354
354
} else if (props .containsKey (Constants .CONLL2011_PROP )) {
355
355
mentionExtractor = new CoNLLMentionExtractor (corefSystem .dictionaries , props ,
356
- corefSystem .semantics , corefSystem .singletonPredictor );
356
+ corefSystem .semantics , corefSystem .singletonPredictor );
357
357
} else {
358
358
throw new RuntimeException ("No input file specified!" );
359
359
}
You can’t perform that action at this time.
0 commit comments