Tabnine Logo
UIMAFramework.newUimaContext
Code IndexAdd Tabnine to your IDE (free)

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

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

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: 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

uimaContext = UIMAFramework.newUimaContext(UIMAFramework.getLogger(), aResourceManager,
    UIMAFramework.newConfigurationManager());
origin: apache/uima-uimaj

mUimaContextAdmin = UIMAFramework.newUimaContext(logger, resMgr, configMgr);
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.uimaUIMAFrameworknewUimaContext

Javadoc

Gets a new instance of a UimaContext. Applications do not generally need to call this method.

Popular methods of UIMAFramework

  • getXMLParser
  • produceAnalysisEngine
  • newDefaultResourceManager
  • getLogger
  • getResourceSpecifierFactory
  • newConfigurationManager
  • 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 post requests using okhttp
  • setRequestProperty (URLConnection)
  • onCreateOptionsMenu (Activity)
  • startActivity (Activity)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • BoxLayout (javax.swing)
  • JCheckBox (javax.swing)
  • JLabel (javax.swing)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now