Codota Logo
UIMAFramework.newConfigurationManager
Code IndexAdd Codota to your IDE (free)

How to use
newConfigurationManager
method
in
org.apache.uima.UIMAFramework

Best Java code snippets using org.apache.uima.UIMAFramework.newConfigurationManager (Showing top 11 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: org.apache.uima/uimaj-cpe

/**
 * Create a new CPEFactory on which we will later call parse(String) to parse a CPE descriptor.
 *
 * @param aResourceManager the a resource manager
 */
public CPEFactory(ResourceManager aResourceManager) {
 if (aResourceManager == null) {
  aResourceManager = UIMAFramework.newDefaultResourceManager();
 }
 uimaContext = UIMAFramework.newUimaContext(UIMAFramework.getLogger(), aResourceManager,
     UIMAFramework.newConfigurationManager());
}
origin: apache/uima-uimaj

configMgr = UIMAFramework.newConfigurationManager();
aAdditionalParams.put(Resource.PARAM_CONFIG_MANAGER, configMgr);
origin: org.apache.uima/uimafit-core

/**
 * Initialize a component from a map.
 * 
 * @param component
 *          the component to initialize.
 * @param map
 *          a UIMA context with configuration parameters.
 * @see #initialize(Object, UimaContext)
 * @throws ResourceInitializationException
 *           if a failure occurs during initialization.
 */
public static void initialize(final Object component, final Map<String, Object> map)
    throws ResourceInitializationException {
 UimaContextAdmin context = UIMAFramework.newUimaContext(UIMAFramework.getLogger(),
     ResourceManagerFactory.newResourceManager(), UIMAFramework.newConfigurationManager());
 ConfigurationManager cfgMgr = context.getConfigurationManager();
 cfgMgr.setSession(context.getSession());
 for (Entry<String, Object> e : map.entrySet()) {
  cfgMgr.setConfigParameterValue(context.getQualifiedContextName() + e.getKey(), e.getValue());
 }
 initialize(component, context);
}
origin: hltfbk/Excitement-Open-Platform

  throws LAPException {
UimaContextAdmin rootContext = UIMAFramework.newUimaContext(UIMAFramework.getLogger(), UIMAFramework.newDefaultResourceManager(), UIMAFramework.newConfigurationManager());
ResourceSpecifier desc = null; 
try {
origin: org.apache.uima/uimaj-cpe

UIMAFramework.newConfigurationManager());
origin: apache/uima-uimaj

configMgr = UIMAFramework.newConfigurationManager();
origin: de.tudarmstadt.ukp.dkpro.lab/de.tudarmstadt.ukp.dkpro.lab.uima

@Override
public boolean initialize(ResourceSpecifier aSpecifier, Map<String, Object> aAdditionalParams)
  throws ResourceInitializationException
{
  if (!super.initialize(aSpecifier, aAdditionalParams)) {
    return false;
  }
  // Create synthetic context to be able to use InitializeUtil.
  UimaContextAdmin context = UIMAFramework.newUimaContext(UIMAFramework.getLogger(),
      UIMAFramework.newDefaultResourceManager(), UIMAFramework.newConfigurationManager());
  ConfigurationManager cfgMgr = context.getConfigurationManager();
  cfgMgr.setSession(context.getSession());
  CustomResourceSpecifier spec = (CustomResourceSpecifier) aSpecifier;
  for (Parameter p : spec.getParameters()) {
    cfgMgr.setConfigParameterValue(context.getQualifiedContextName() + p.getName(), p
        .getValue());
  }
  ConfigurationParameterInitializer.initialize(this, context);
  return true;
}
origin: org.dkpro.lab/dkpro-lab-uima

@Override
public boolean initialize(ResourceSpecifier aSpecifier, Map<String, Object> aAdditionalParams)
  throws ResourceInitializationException
{
  if (!super.initialize(aSpecifier, aAdditionalParams)) {
    return false;
  }
  // Create synthetic context to be able to use InitializeUtil.
  UimaContextAdmin context = UIMAFramework.newUimaContext(UIMAFramework.getLogger(),
      UIMAFramework.newDefaultResourceManager(), UIMAFramework.newConfigurationManager());
  ConfigurationManager cfgMgr = context.getConfigurationManager();
  cfgMgr.setSession(context.getSession());
  CustomResourceSpecifier spec = (CustomResourceSpecifier) aSpecifier;
  for (Parameter p : spec.getParameters()) {
    cfgMgr.setConfigParameterValue(context.getQualifiedContextName() + p.getName(), p
        .getValue());
  }
  ConfigurationParameterInitializer.initialize(this, context);
  return true;
}
origin: de.tudarmstadt.ukp.dkpro.lab/de.tudarmstadt.ukp.dkpro.lab.uima.engine.simple

UimaContextAdmin uimaCtx = newUimaContext(logger, resMgr, newConfigurationManager());
origin: de.tudarmstadt.ukp.dkpro.lab/dkpro-lab-uima-engine-simple

UimaContextAdmin uimaCtx = newUimaContext(logger, resMgr, newConfigurationManager());
origin: org.dkpro.lab/dkpro-lab-uima-engine-simple

UimaContextAdmin uimaCtx = newUimaContext(logger, resMgr, newConfigurationManager());
org.apache.uimaUIMAFrameworknewConfigurationManager

Javadoc

Gets a new instance of the ConfigurationManager used by this implementation. This will be used by Resources to manage access to their configuration parameters.

Popular methods of UIMAFramework

  • getXMLParser
  • produceAnalysisEngine
  • newDefaultResourceManager
  • getLogger
  • getResourceSpecifierFactory
  • newUimaContext
  • produceCollectionReader
  • produceCollectionProcessingEngine
    Produces a CollectionProcessingEngine instance from a cpeDescription.
  • getDefaultPerformanceTuningProperties
  • produceCasConsumer
  • getVersionString
  • produceResource
  • getVersionString,
  • produceResource,
  • _getBuildRevision,
  • _getDefaultPerformanceTuningProperties,
  • _getLogger,
  • _getMajorVersion,
  • _getMinorVersion,
  • _getResourceFactory,
  • _getResourceSpecifierFactory

Popular in Java

  • Making http requests using okhttp
  • getApplicationContext (Context)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Runner (org.openjdk.jmh.runner)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
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