File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed
itest/src/edu/stanford/nlp/dcoref
src/edu/stanford/nlp/dcoref Expand file tree Collapse file tree 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 {
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 ;
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments