Skip to content

Commit

Permalink
fix: test with it model as de is too big
Browse files Browse the repository at this point in the history
  • Loading branch information
bamthomas committed Jan 22, 2025
1 parent bbbc11e commit 5fdc68d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@

import static org.fest.assertions.Assertions.assertThat;
import static org.icij.datashare.text.Language.GERMAN;
import static org.icij.datashare.text.Language.ITALIAN;

public class CoreNlpModelsTest {
@Test
public void testLoadJar() {
CoreNlpModels models = CoreNlpModels.getInstance();
models.addResourceToContextClassLoader(models.getModelsBasePath(GERMAN).resolve(models.getJarFileName(GERMAN)));

models.addResourceToContextClassLoader(models.getModelsBasePath(ITALIAN).resolve(models.getJarFileName(ITALIAN)));
assertThat(ClassLoader.getSystemClassLoader().
getResource("StanfordCoreNLP-german.properties")).isNotNull();
getResource("StanfordCoreNLP-italian.properties")).isNotNull();
}
}
Binary file not shown.
Binary file not shown.

0 comments on commit 5fdc68d

Please sign in to comment.