org.cleartk.timeml.corpus
Class TempEval2010CollectionReader

java.lang.Object
  extended by org.apache.uima.resource.Resource_ImplBase
      extended by org.apache.uima.resource.ConfigurableResource_ImplBase
          extended by org.apache.uima.collection.CollectionReader_ImplBase
              extended by org.uimafit.component.JCasCollectionReader_ImplBase
                  extended by org.cleartk.timeml.corpus.TempEval2010CollectionReader
All Implemented Interfaces:
org.apache.uima.collection.base_cpm.BaseCollectionReader, org.apache.uima.collection.CollectionReader, org.apache.uima.resource.ConfigurableResource, org.apache.uima.resource.Resource

public class TempEval2010CollectionReader
extends org.uimafit.component.JCasCollectionReader_ImplBase


Copyright (c) 2011, Regents of the University of Colorado
All rights reserved.

Author:
Steven Bethard

Field Summary
protected  List<File> dataDirectories
           
static String PARAM_DATA_DIRECTORIES
           
static String PARAM_SELECTED_FILE_NAMES
           
protected  Set<String> selectedFileNames
           
protected  int uriIndex
           
protected  List<URI> uris
           
 
Fields inherited from interface org.apache.uima.resource.Resource
PARAM_AGGREGATE_SOFA_MAPPINGS, PARAM_CONFIG_MANAGER, PARAM_CONFIG_PARAM_SETTINGS, PARAM_PERFORMANCE_TUNING_SETTINGS, PARAM_RESOURCE_MANAGER, PARAM_UIMA_CONTEXT
 
Constructor Summary
TempEval2010CollectionReader()
           
 
Method Summary
protected static String getAnnotatedFileName(String line)
           
static List<String> getAnnotatedFileNames(File dataDirectory)
           
static org.apache.uima.collection.CollectionReader getCollectionReader(List<File> dataDirectories)
           
static org.apache.uima.collection.CollectionReader getCollectionReader(List<File> dataDirectories, Set<String> selectedFileNames)
           
static org.apache.uima.collection.CollectionReader getCollectionReader(String... dataPaths)
           
 void getNext(org.apache.uima.jcas.JCas jCas)
           
 org.apache.uima.util.Progress[] getProgress()
           
 boolean hasNext()
           
 void initialize(org.apache.uima.UimaContext context)
           
 
Methods inherited from class org.uimafit.component.JCasCollectionReader_ImplBase
close, getLogger, getNext, initialize
 
Methods inherited from class org.apache.uima.collection.CollectionReader_ImplBase
destroy, getCasInitializer, getProcessingResourceMetaData, initialize, isConsuming, reconfigure, setCasInitializer, typeSystemInit
 
Methods inherited from class org.apache.uima.resource.ConfigurableResource_ImplBase
getConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValue
 
Methods inherited from class org.apache.uima.resource.Resource_ImplBase
getCasManager, getMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger, setMetaData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.uima.resource.ConfigurableResource
getConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValue
 
Methods inherited from interface org.apache.uima.resource.Resource
getMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger
 

Field Detail

dataDirectories

protected List<File> dataDirectories

PARAM_DATA_DIRECTORIES

public static final String PARAM_DATA_DIRECTORIES

selectedFileNames

protected Set<String> selectedFileNames

PARAM_SELECTED_FILE_NAMES

public static final String PARAM_SELECTED_FILE_NAMES

uris

protected List<URI> uris

uriIndex

protected int uriIndex
Constructor Detail

TempEval2010CollectionReader

public TempEval2010CollectionReader()
Method Detail

getCollectionReader

public static org.apache.uima.collection.CollectionReader getCollectionReader(String... dataPaths)
                                                                       throws org.apache.uima.resource.ResourceInitializationException
Throws:
org.apache.uima.resource.ResourceInitializationException

getCollectionReader

public static org.apache.uima.collection.CollectionReader getCollectionReader(List<File> dataDirectories)
                                                                       throws org.apache.uima.resource.ResourceInitializationException
Throws:
org.apache.uima.resource.ResourceInitializationException

getCollectionReader

public static org.apache.uima.collection.CollectionReader getCollectionReader(List<File> dataDirectories,
                                                                              Set<String> selectedFileNames)
                                                                       throws org.apache.uima.resource.ResourceInitializationException
Throws:
org.apache.uima.resource.ResourceInitializationException

initialize

public void initialize(org.apache.uima.UimaContext context)
                throws org.apache.uima.resource.ResourceInitializationException
Overrides:
initialize in class org.uimafit.component.JCasCollectionReader_ImplBase
Throws:
org.apache.uima.resource.ResourceInitializationException

hasNext

public boolean hasNext()
                throws IOException,
                       org.apache.uima.collection.CollectionException
Throws:
IOException
org.apache.uima.collection.CollectionException

getNext

public void getNext(org.apache.uima.jcas.JCas jCas)
             throws IOException,
                    org.apache.uima.collection.CollectionException
Specified by:
getNext in class org.uimafit.component.JCasCollectionReader_ImplBase
Throws:
IOException
org.apache.uima.collection.CollectionException

getProgress

public org.apache.uima.util.Progress[] getProgress()

getAnnotatedFileName

protected static String getAnnotatedFileName(String line)

getAnnotatedFileNames

public static List<String> getAnnotatedFileNames(File dataDirectory)
                                          throws IOException
Throws:
IOException


Copyright © 2013. All Rights Reserved.