Skip to content

Commit

Permalink
rrrrg
Browse files Browse the repository at this point in the history
  • Loading branch information
AngledLuffa committed May 11, 2024
1 parent 815cc32 commit 84c448a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions data/edu/stanford/nlp/dcoref/coref.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ dcoref.postprocessing = true
dcoref.maxdist = -1
dcoref.use.big.gender.number = false
dcoref.replicate.conll = true
dcoref.conll.scorer = /u/scr/nlp/data/conll-2011/scorer/v4/scorer.pl
# TODO maybe this can be 2012?
dcoref.conll.scorer = /u/nlp/data/coref/conll-2012/scorer/v4/scorer.pl

dcoref.logFile = /u/scr/nlp/coref/error_log/temp/result_conlldev.txt
dcoref.conll2011 = /u/scr/nlp/data/conll-2011/v2/data/dev/data/english/annotations
dcoref.logFile = /u/nlp/data/coref/error_log/temp/result_conlldev.txt
dcoref.conll2011 = /u/nlp/data/coref/conll-2011/v2/data/dev/data/english/annotations

6 changes: 3 additions & 3 deletions itest/src/edu/stanford/nlp/dcoref/DcorefSlowITest.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ protected void makePropsFile(String path, String workDir, String scorer) throws
}

public void testDcorefCoNLLResultV4() throws Exception {
double finalScore = runDcoref(String.format("%s/conll-2011/scorer/v4/scorer.pl", TestPaths.testHome()));
System.out.printf("Final Score (CoNLL 2011, scorer v4): (MUC+B^3+ceafe)/3 = %.2f%n", finalScore);
double finalScore = runDcoref(String.format("%s/conll-2012/scorer/v4/scorer.pl", TestPaths.testHome()));
System.out.printf("Final Score (CoNLL 2012, scorer v4): (MUC+B^3+ceafe)/3 = %.2f%n", finalScore);
assertEquals(59.3, finalScore, 0.3); // 2016-07: 59.45
}

public void testDcorefCoNLLResultV801() throws Exception {
double finalScore = runDcoref(String.format("%s/conll-2012/scorer/v8.01/scorer.pl", TestPaths.testHome()));
System.out.printf("Final Score (CoNLL 2011, scorer v8): (MUC+B^3+ceafe)/3 = %.2f%n", finalScore);
System.out.printf("Final Score (CoNLL 2012, scorer v8): (MUC+B^3+ceafe)/3 = %.2f%n", finalScore);
assertEquals(54.0, finalScore, 0.3); // 2016-07: 54.13
}

Expand Down
2 changes: 1 addition & 1 deletion src/edu/stanford/nlp/dcoref/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ protected Constants() {} // static class but extended by jcoref
public static final boolean PRINT_CONLL_OUTPUT = false;

/** Default path for conll scorer script */
public static final String conllMentionEvalScript = "/u/scr/nlp/data/conll-2011/scorer/v4/scorer.pl";
public static final String conllMentionEvalScript = "/u/nlp/data/coref/conll-2012/scorer/v4/scorer.pl";

/** if true, skip coreference resolution. do mention detection only */
public static final boolean SKIP_COREF = false;
Expand Down

0 comments on commit 84c448a

Please sign in to comment.