Skip to content

Commit

Permalink
why :(
Browse files Browse the repository at this point in the history
  • Loading branch information
AngledLuffa committed Jun 4, 2024
1 parent cb9bace commit ce88c9c
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
import edu.stanford.nlp.util.BenchmarkingHelper;
import edu.stanford.nlp.util.StringUtils;

import java.net.URL;


/**
* Run the dcoref system using the exact properties we distribute as
* an example. Check that the output does not change markedly from expected.
Expand Down Expand Up @@ -54,6 +57,10 @@ private static String runCorefTest(boolean deleteOnExit) throws Exception {
Properties props = StringUtils.argsToProperties(corefArgs);
System.err.println("Running coref with arguments:");
System.err.println(props);
if (props.getProperty("coref.scorer").startsWith("/u/scr/nlp")) {
URL url = ClassLoader.getSystemResource("edu/stanford/nlp/coref/hybrid/properties/zh-dcoref-conll.properties");
throw new RuntimeException("Why is this not working??? " + url);
}

HybridCorefSystem.runCoref(corefArgs);

Expand Down

0 comments on commit ce88c9c

Please sign in to comment.