Skip to content

Commit

Permalink
Update test score for German model to reflect latest UD dataset. Add …
Browse files Browse the repository at this point in the history
…a bit more explanation to the missed accuracy assertion
  • Loading branch information
AngledLuffa committed Oct 15, 2024
1 parent e1e7227 commit 83b38bb
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public void testGermanDevPOS() throws IOException {
public void testGermanTestPOS() throws IOException {
runPOSTest("edu/stanford/nlp/models/pos-tagger/german-ud.tagger",
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()),
92.84);
94.5);
}

public void testSpanishDevPOS() throws IOException {
Expand All @@ -100,7 +100,8 @@ public void runPOSTest(String modelPath, String dataPath, double expectedTokenAc
System.err.println(dataPath);
System.err.println(testClassifier.tagAccuracy());
System.err.println(expectedTokenAccuracy);
assertTrue(testClassifier.tagAccuracy() >= expectedTokenAccuracy);
assertTrue("Expected accuracy " + expectedTokenAccuracy + " but got " + testClassifier.tagAccuracy(),
testClassifier.tagAccuracy() >= expectedTokenAccuracy);
}

}

0 comments on commit 83b38bb

Please sign in to comment.