Logo Search packages:      
Sourcecode: uimaj version File versions  Download package

AnalysisEngine org::apache::uima::caseditor::core::uima::AnnotatorConfiguration::createAnnotator (  ) throws ResourceInitializationException [inline]

Only text analysis engines are supported.

Returns:
the text analysis engine
Exceptions:
ResourceInitializationException

Definition at line 63 of file AnnotatorConfiguration.java.

References org::apache::uima::UIMAFramework::newDefaultResourceManager(), org::apache::uima::UIMAFramework::produceAnalysisEngine(), and org::apache::uima::resource::ResourceManager::setDataPath().

Referenced by org::apache::uima::caseditor::ui::action::AnnotatorActionRunnable::initialize().

                                                                                 {
    ResourceManager resourceManager = UIMAFramework.newDefaultResourceManager();

    if (mResourceBasePath.getLocation() != null) {
      try {
        resourceManager.setDataPath(mResourceBasePath.getLocation().toOSString());
      } catch (MalformedURLException e) {
        // this will not happen
        throw new TaeError("Unexpexted exceptioon", e);
      }
    }

    return UIMAFramework.produceAnalysisEngine(mDescriptor, resourceManager, null);
  }

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index