org.cleartk.timeml.corpus
Class TempEval2010CollectionReader
java.lang.Object
org.apache.uima.resource.Resource_ImplBase
org.apache.uima.resource.ConfigurableResource_ImplBase
org.apache.uima.collection.CollectionReader_ImplBase
org.uimafit.component.JCasCollectionReader_ImplBase
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
| 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 |
| 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 |
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
TempEval2010CollectionReader
public TempEval2010CollectionReader()
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.