Skip to content

Commit 83b38bb

Browse files
committed
Update test score for German model to reflect latest UD dataset. Add a bit more explanation to the missed accuracy assertion
1 parent e1e7227 commit 83b38bb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

itest/src/edu/stanford/nlp/pipeline/POSTaggerBenchmarkITest.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public void testGermanDevPOS() throws IOException {
7575
public void testGermanTestPOS() throws IOException {
7676
runPOSTest("edu/stanford/nlp/models/pos-tagger/german-ud.tagger",
7777
String.format("format=TSV,wordColumn=1,tagColumn=3,%s/depparser/nn/models-4.0.0/data/clean/de_gsd-ud-test.conllu.clean", TestPaths.testHome()),
78-
92.84);
78+
94.5);
7979
}
8080

8181
public void testSpanishDevPOS() throws IOException {
@@ -100,7 +100,8 @@ public void runPOSTest(String modelPath, String dataPath, double expectedTokenAc
100100
System.err.println(dataPath);
101101
System.err.println(testClassifier.tagAccuracy());
102102
System.err.println(expectedTokenAccuracy);
103-
assertTrue(testClassifier.tagAccuracy() >= expectedTokenAccuracy);
103+
assertTrue("Expected accuracy " + expectedTokenAccuracy + " but got " + testClassifier.tagAccuracy(),
104+
testClassifier.tagAccuracy() >= expectedTokenAccuracy);
104105
}
105106

106107
}

0 commit comments

Comments
 (0)