Tabnine Logo
CollectionReaderFactory.createReaderFromPath
Code IndexAdd Tabnine to your IDE (free)

How to use
createReaderFromPath
method
in
org.apache.uima.fit.factory.CollectionReaderFactory

Best Java code snippets using org.apache.uima.fit.factory.CollectionReaderFactory.createReaderFromPath (Showing top 6 results out of 315)

origin: org.apache.uima/uimafit-core

/**
 * Create a CollectionReader from an XML descriptor file and a set of configuration parameters.
 * 
 * @param descriptorPath
 *          The path to the XML descriptor file.
 * @param configurationData
 *          Any additional configuration parameters to be set. These should be supplied as (name,
 *          value) pairs, so there should always be an even number of parameters.
 * @return The CollectionReader created from the XML descriptor and the configuration parameters.
 * @deprecated use {@link #createReaderFromPath(String, Object...)}
 * @throws UIMAException
 *           if the descriptor could not be created or if the component could not be instantiated
 * @throws IOException
 *           if the descriptor could not be read
 */
@Deprecated
public static CollectionReader createCollectionReaderFromPath(String descriptorPath,
    Object... configurationData) throws UIMAException, IOException {
 return createReaderFromPath(descriptorPath, configurationData);
}
origin: de.tudarmstadt.ukp.dkpro.core/de.tudarmstadt.ukp.dkpro.core.io.combination-asl

@Override
public void initialize(UimaContext context)
    throws ResourceInitializationException 
{
  super.initialize(context);
  
  readers = new ArrayList<>();
  
  for (String readerFile : readerFiles) {
    try {
      readers.add(CollectionReaderFactory.createReaderFromPath(readerFile));
    } catch (UIMAException e) {
      throw new ResourceInitializationException(e);
    } catch (IOException e) {
      throw new ResourceInitializationException(e);
    }
  }
}
origin: apache/ctakes

public BagOfAnnotationsGenerator(String inputDir, String outputDir, String aePath) throws UIMAException, IOException {
  reader = CollectionReaderFactory
      .createReaderFromPath( "../ctakes-core/desc/collection_reader/FilesInDirectoryCollectionReader.xml",
          ConfigParameterConstants.PARAM_INPUTDIR, inputDir );
  this.ae = AnalysisEngineFactory.createEngineFromPath( aePath == null ? defaultAEPath : aePath );
  this.outputDir = outputDir;
  this.classOfT = getClassOfT();
}

origin: org.apache.ctakes/ctakes-clinical-pipeline

public BagOfAnnotationsGenerator(String inputDir, String outputDir, String aePath) throws UIMAException, IOException {
  reader = CollectionReaderFactory
      .createReaderFromPath( "../ctakes-core/desc/collection_reader/FilesInDirectoryCollectionReader.xml",
          ConfigParameterConstants.PARAM_INPUTDIR, inputDir );
  this.ae = AnalysisEngineFactory.createEngineFromPath( aePath == null ? defaultAEPath : aePath );
  this.outputDir = outputDir;
  this.classOfT = getClassOfT();
}

origin: apache/ctakes

CollectionReader reader = CollectionReaderFactory.createReaderFromPath(
   "../ctakes-core/desc/collection_reader/FilesInDirectoryCollectionReader.xml",
   ConfigParameterConstants.PARAM_INPUTDIR,
origin: org.apache.ctakes/ctakes-coreference

CollectionReader reader = CollectionReaderFactory.createReaderFromPath(
   "../ctakes-core/desc/collection_reader/FilesInDirectoryCollectionReader.xml",
   ConfigParameterConstants.PARAM_INPUTDIR,
org.apache.uima.fit.factoryCollectionReaderFactorycreateReaderFromPath

Javadoc

Create a CollectionReader from an XML descriptor file and a set of configuration parameters.

Popular methods of CollectionReaderFactory

  • createReaderDescription
    A simple factory method for creating a CollectionReaderDescription with a given class, type system d
  • createReader
    This method creates a CollectionReader from a CollectionReaderDescription adding additional configur
  • createCollectionReader
    This method creates a CollectionReader from a CollectionReaderDescription adding additional configur
  • createReaderDescriptionFromPath
    Create a CollectionReader from an XML descriptor file and a set of configuration parameters.

Popular in Java

  • Making http post requests using okhttp
  • getApplicationContext (Context)
  • getSharedPreferences (Context)
  • putExtra (Intent)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • CodeWhisperer alternatives
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