DatasetLoader { public List<Dataset> loadUniversalDependencyTreebankV1_3() throws IOException { File dataDir = new File(cacheRoot, "ud-treebanks-v1.3"); DataPackage data = new DataPackage.Builder() .url("https: + "1-1699/ud-treebanks-v1.3.tgz?sequence=1&isAllowed=y") .sha1("44367112880cf0af3f293cb3f0cc6ce50c0e65c0").target("ud-treebanks-v1.3.tgz") .postAction((d) -> { untgz(new File(dataDir, d.getTarget()), dataDir); }).build(); fetch(dataDir, data); List<Dataset> sets = new ArrayList<>(); for (File f : new File(dataDir, "ud-treebanks-v1.3").listFiles()) { sets.add(new UDDataset(f)); } return sets; } DatasetLoader();  DatasetLoader(File aCacheRoot); void setCacheRoot(File aCacheRoot); File getCacheRoot(); List<Dataset> loadUniversalDependencyTreebankV1_3();  }
@Test public void testUniversalDependencyTreebankV1_3() throws Exception { List<Dataset> dss = new DatasetLoader(DkproTestContext.getCacheFolder()) .loadUniversalDependencyTreebankV1_3(); for (Dataset ds : dss) { assertDatasetOk(ds); } }