File tree 1 file changed +7
-0
lines changed
itest/src/edu/stanford/nlp/coref/hybrid
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 19
19
import edu .stanford .nlp .util .BenchmarkingHelper ;
20
20
import edu .stanford .nlp .util .StringUtils ;
21
21
22
+ import java .net .URL ;
23
+
24
+
22
25
/**
23
26
* Run the dcoref system using the exact properties we distribute as
24
27
* an example. Check that the output does not change markedly from expected.
@@ -54,6 +57,10 @@ private static String runCorefTest(boolean deleteOnExit) throws Exception {
54
57
Properties props = StringUtils .argsToProperties (corefArgs );
55
58
System .err .println ("Running coref with arguments:" );
56
59
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
+ }
57
64
58
65
HybridCorefSystem .runCoref (corefArgs );
59
66
You can’t perform that action at this time.
0 commit comments