public void uninstallExecutable() { if (runtimeProvider != null) { runtimeProvider.uninstall(); } }
public File getTrainExecutable() throws Exception { if (runtimeProvider == null) { runtimeProvider = new RuntimeProvider("classpath:/org/dkpro/tc/ml/svmhmm/"); } return runtimeProvider.getFile("svm_hmm_learn"); }
executable = runtimeProvider.getFile("hunpos-tag");
runtimeProvider = new RuntimeProvider( "classpath:/de/tudarmstadt/ukp/dkpro/core/hunpos/bin/");
public File getFile(String aFilename) throws IOException { install(); File file = new File(getWorkspace(), aFilename); if (!file.exists()) { throw new FileNotFoundException("File not found in workspace: [" + aFilename + "]"); } return file; }
public void install() throws IOException { if (installed) { return; } Properties manifest = getManifest(); for (String filename : manifest.stringPropertyNames()) { URL source = resolveLocation(baseLocation + platformId + "/" + filename, this, null); File target = new File(getWorkspace(), filename); InputStream is = null; OutputStream os = null; try { is = source.openStream(); os = new FileOutputStream(target); IOUtils.copyLarge(is, os); } finally { closeQuietly(is); closeQuietly(os); } if (MODE_EXECUTABLE.equals(manifest.getProperty(filename))) { target.setExecutable(true); } target.deleteOnExit(); } installed = true; }
public static File getPredictionExecutable() throws Exception { if (runtimeProvider == null) { runtimeProvider = new RuntimeProvider("classpath:/org/dkpro/tc/ml/svmhmm/"); } return runtimeProvider.getFile("svm_hmm_classify"); }
public void uninstallExecutable() { if(runtimeProvider != null) { runtimeProvider.uninstall(); } }
public static File getTrainExecutable() throws Exception { if (runtimeProvider == null) { runtimeProvider = new RuntimeProvider("classpath:/org/dkpro/tc/ml/svmhmm/"); } return runtimeProvider.getFile("svm_hmm_learn"); }
public void uninstallExecutable() { if (runtimeProvider != null) { runtimeProvider.uninstall(); } }
public File getPredictionExecutable() throws Exception { if (runtimeProvider == null) { runtimeProvider = new RuntimeProvider("classpath:/org/dkpro/tc/ml/svmhmm/"); } return runtimeProvider.getFile("svm_hmm_classify"); }
@Override protected void finalize() throws Throwable { uninstall(); } }
public File getExecutable() throws Exception { if (runtimeProvider == null) { runtimeProvider = new RuntimeProvider("classpath:/org/dkpro/tc/ml/xgboost/"); } return runtimeProvider.getFile("xgboost"); }
public void uninstallExecutable() { if (runtimeProvider != null) { runtimeProvider.uninstall(); } }
public File getExecutable() throws Exception { if (runtimeProvider == null) { runtimeProvider = new RuntimeProvider("classpath:/org/dkpro/tc/ml/xgboost/"); } return runtimeProvider.getFile("xgboost"); }
@Override public void destroy() { runtimeProvider.uninstall(); super.destroy(); } }
public static File getExecutable() throws Exception { if (runtimeProvider == null) { String platform = detector.getPlatformId(); LogFactory.getLog(CrfSuiteTestTask.class.getName()) .info("Load binary for platform: [" + platform + "]"); runtimeProvider = new RuntimeProvider(classpath); } return runtimeProvider.getFile("crfsuite"); }
public File getExecutable() throws Exception { if (runtimeProvider == null) { String platform = detector.getPlatformId(); LogFactory.getLog(CrfSuiteTestTask.class.getName()) .info("Load binary for platform: [" + platform + "]"); runtimeProvider = new RuntimeProvider(classpath); } return runtimeProvider.getFile("crfsuite"); }
public File getExecutable() throws Exception { catchWindows32BitUsers(); if (runtimeProvider == null) { String platform = detector.getPlatformId(); LogFactory.getLog(VowpalWabbitTestTask.class.getName()) .info("Load binary for platform: [" + platform + "]"); runtimeProvider = new RuntimeProvider(classpath); } return runtimeProvider.getFile("vw"); }