public static MappingProvider createConstituentMappingProvider(Object aContextObject, String aMappingLocation, String aLanguage, HasResourceMetadata aSource) { MappingProvider p = createConstituentMappingProvider(aContextObject, aMappingLocation, null, aLanguage); p.addImport(CONSTITUENT_TAGSET, aSource); p.addTagMappingImport("constituent", aSource); return p; }
@Override protected void init() { super.init(); // Mappings are expected to be provided by the components, not to be resolved from // model artifacts. setDefault(GROUP_ID, null); setDefault(ARTIFACT_URI, null); }
public static MappingProvider createDependencyMappingProvider(Object aContextObject, String aMappingLocation, String aLanguage, HasResourceMetadata aSource) { MappingProvider p = createDependencyMappingProvider(aContextObject, aMappingLocation, null, aLanguage); p.addImport(DEPENDENCY_TAGSET, aSource); return p; }
public LinkingMorphemes getLinkingMorphemes() throws IOException { if (morphemes == null) { modelProvider.configure(); morphemes = modelProvider.getResource(); } return morphemes; } }
public static MappingProvider createPosMappingProvider(Object aContextObject, String aMappingLocation, String aLanguage, HasResourceMetadata aSource) { MappingProvider p = createPosMappingProvider(aContextObject, aMappingLocation, null, aLanguage); p.addImport(POS_TAGSET, aSource); return p; }
public File getTrainExecutable() throws Exception { if (runtimeProvider == null) { runtimeProvider = new RuntimeProvider("classpath:/org/dkpro/tc/ml/svmhmm/"); } return runtimeProvider.getFile("svm_hmm_learn"); }
@Override protected File produceResource(URL aUrl) throws IOException { return ResourceUtils.getUrlAsFile(aUrl, true); } };
public void uninstallExecutable() { if (runtimeProvider != null) { runtimeProvider.uninstall(); } }
public static MappingProvider createChunkMappingProvider(Object aContextObject, String aMappingLocation, String aLanguage, HasResourceMetadata aSource) { MappingProvider p = createChunkMappingProvider(aContextObject, aMappingLocation, null, aLanguage); p.addImport(CHUNK_TAGSET, aSource); return p; }
public RuntimeProvider(String aBaseLocation) { setBaseLocation(aBaseLocation); platformDetector = new PlatformDetector(); }
@Override public void configure(CAS aCas) throws AnalysisEngineProcessException { super.configure(aCas); try { recordTagsets(aCas); } catch (CASException e) { throw new AnalysisEngineProcessException(e); } }
protected void init() { setDefault(GROUP_ID, "de.tudarmstadt.ukp.dkpro.core"); setDefault(ARTIFACT_URI, "mvn:${" + GROUP_ID + "}:${" + ARTIFACT_ID + "}:${" + VERSION + "}"); }
/** * The the current context. * * @return the context. */ public static synchronized DkproContext getContext() { if (context == null) { context = new DkproContext(); } return context; }
/** * Override the architecture. This should only be used in test cases. * * @param aArch * {@literal "big-endian"} for PowerPC or Sparc systems or {@literal "little-endian"} * for x86 systems. */ public void setArch(final String aArch) { updatePlatform(_os, aArch, _byteOrder); }
public Dictionary getDictionary() throws IOException { if (this.dict == null) { affixModelProvider.configure(); modelProvider.configure(); this.dict = modelProvider.getResource(); } return this.dict; } }
public static File getPredictionExecutable() throws Exception { if (runtimeProvider == null) { runtimeProvider = new RuntimeProvider("classpath:/org/dkpro/tc/ml/svmhmm/"); } return runtimeProvider.getFile("svm_hmm_classify"); }
@Override protected File produceResource(URL aUrl) throws IOException { return ResourceUtils.getUrlAsFile(aUrl, true); } };
public static File getTrainExecutable() throws Exception { if (runtimeProvider == null) { runtimeProvider = new RuntimeProvider("classpath:/org/dkpro/tc/ml/svmhmm/"); } return runtimeProvider.getFile("svm_hmm_learn"); }
@Override protected File produceResource(URL aUrl) throws IOException { return ResourceUtils.getUrlAsFile(aUrl, true); } };
public File getExecutable() throws Exception { if (runtimeProvider == null) { runtimeProvider = new RuntimeProvider("classpath:/org/dkpro/tc/ml/xgboost/"); } return runtimeProvider.getFile("xgboost"); }