Codota Logo
BaseExperimentBuilder.loadProvider
Code IndexAdd Codota to your IDE (free)

How to use
loadProvider
method
in
edu.cmu.lti.oaqa.ecd.BaseExperimentBuilder

Best Java code snippets using edu.cmu.lti.oaqa.ecd.BaseExperimentBuilder.loadProvider (Showing top 8 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: edu.cmu.lti.oaqa.cse/cse-framework

@Override
public boolean initialize(ResourceSpecifier aSpecifier, Map<String, Object> tuples)
    throws ResourceInitializationException {
 String pp = (String) tuples.get("persistence-provider");
 if (pp == null) {
  throw new ResourceInitializationException(new IllegalArgumentException(
      "Must provide a parameter of type <persistence-provider>"));
 }
 this.persistence = BaseExperimentBuilder.loadProvider(pp,
     RetrievalEvalPersistenceProvider.class);
 return true;
}
origin: edu.cmu.lti.oaqa.cse/cse-framework

@Override
public boolean initialize(ResourceSpecifier aSpecifier, Map<String, Object> tuples)
    throws ResourceInitializationException {
 String pp = (String) tuples.get("persistence-provider");
 if (pp == null) {
  throw new ResourceInitializationException(new IllegalArgumentException(
      "Must provide a parameter of type <persistence-provider>"));
 }
 this.persistence = BaseExperimentBuilder.loadProvider(pp,
     RetrievalEvalPersistenceProvider.class);
 return true;
}

origin: edu.cmu.lti.oaqa.ecd/uima-ecd

@Override
public void initialize(UimaContext c)
    throws ResourceInitializationException {
 super.initialize(c);
 String pp = (String) c.getConfigParameterValue("persistence-provider");
 if (pp == null) {
  throw new ResourceInitializationException(new IllegalArgumentException(
      "Must provide a parameter of type <persistence-provider>"));
 }
 this.persistence = BaseExperimentBuilder.loadProvider(pp,
     LogPersistenceProvider.class);
}

origin: edu.cmu.lti.oaqa.ecd/uima-ecd

private FunnelingStrategy getProcessingStrategy() throws ResourceInitializationException {
 FunnelingStrategy ps = new DefaultFunnelingStrategy();
 AnyObject map = config.getAnyObject("processing-strategy");
 if (map != null) {
  ps = BaseExperimentBuilder.loadProvider(map, FunnelingStrategy.class);
 }
 return ps;
}

origin: edu.cmu.lti.oaqa.cse/cse-framework

private FunnelingStrategy getProcessingStrategy() throws ResourceInitializationException {
 FunnelingStrategy ps = new DefaultFunnelingStrategy();
 AnyObject map = config.getAnyObject("processing-strategy");
 if (map != null) {
  ps = BaseExperimentBuilder.loadProvider(map, FunnelingStrategy.class);
 }
 return ps;
}
origin: edu.cmu.lti.oaqa.cse/cse-framework

@Override
public void initialize() throws ResourceInitializationException {
 super.initialize();
 String url = (String) getConfigParameterValue("broker-url");
 // String user = (String) getConfigParameterValue("amq-username");
 // String password = (String) getConfigParameterValue("amq-password");
 String pp = (String) getConfigParameterValue("persistence-provider");
 if (pp == null) {
  throw new ResourceInitializationException(new IllegalArgumentException(
      String.format("%s must be provided with a parameter of type <persistence-provider>", getClass().getSimpleName())));
 }
 this.persistence = BaseExperimentBuilder.loadProvider(pp,
     ExperimentPersistenceProvider.class);
 try {
  this.producer = new ActiveMQQueueProducer(url, getUUID()
      + COLLECTION_READER_QUEUE_SUFFIX);
 } catch (JMSException e) {
  throw new ResourceInitializationException(e);
 }
}
origin: edu.cmu.lti.oaqa.cse/cse-framework

@Override
public void initialize() throws ResourceInitializationException {
 this.dataset = (String) getConfigParameterValue("dataset");
 this.experimentUuid = (String) getConfigParameterValue(BaseExperimentBuilder.EXPERIMENT_UUID_PROPERTY);
 this.stageId = (Integer) getConfigParameterValue(BaseExperimentBuilder.STAGE_ID_PROPERTY);
 String decoratorsNames = (String) getConfigParameterValue("decorators");
 if (decoratorsNames != null) {
  this.decorators = BaseExperimentBuilder.createAnnotators(decoratorsNames);
 }
 String pp = (String) getConfigParameterValue("persistence-provider");
 if (pp == null) {
  throw new ResourceInitializationException(new IllegalArgumentException(
      String.format("%s must be provided with a parameter of type <persistence-provider>", getClass().getSimpleName())));
 }
 this.persistence = BaseExperimentBuilder.loadProvider(pp,
     ExperimentPersistenceProvider.class);
}
origin: edu.cmu.lti.oaqa.ecd/uima-ecd

     "Must provide a parameter of type <persistence-provider>"));
this.persistence = BaseExperimentBuilder.loadProvider(pp, PhasePersistenceProvider.class);
this.phaseName = (String) ctx.getConfigParameterValue("name");
this.phaseNo = (Integer) ctx.getConfigParameterValue(QA_INTERNAL_PHASEID);
edu.cmu.lti.oaqa.ecdBaseExperimentBuilderloadProvider

Popular methods of BaseExperimentBuilder

  • <init>
  • buildHandleFromMap
  • buildResource
  • createResourceList
  • appendMethodSignature
  • buildComponent
  • buildHandleFromObject
  • buildPipeline
  • cast
  • createAnalysisEngineDescription
  • createAnnotators
  • getExperimentUuid
  • createAnnotators,
  • getExperimentUuid,
  • getFromClassOrInherit,
  • getFromListOrInherit,
  • getParamList,
  • initializeResource,
  • insertExperiment,
  • loadFromClassOrInherit,
  • loadTypePriorities

Popular in Java

  • Parsing JSON documents to java classes using gson
  • addToBackStack (FragmentTransaction)
  • getSharedPreferences (Context)
  • getSystemService (Context)
  • Kernel (java.awt.image)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Option (scala)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now