Skip to content

Commit ce88c9c

Browse files
committed
why :(
1 parent cb9bace commit ce88c9c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

itest/src/edu/stanford/nlp/coref/hybrid/ChineseCorefBenchmarkSlowITest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
import edu.stanford.nlp.util.BenchmarkingHelper;
2020
import edu.stanford.nlp.util.StringUtils;
2121

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

5865
HybridCorefSystem.runCoref(corefArgs);
5966

0 commit comments

Comments
 (0)