Package de.julielab.jcore.reader.bc2gm
Class BC2GMReader
- java.lang.Object
-
- org.apache.uima.resource.Resource_ImplBase
-
- org.apache.uima.resource.ConfigurableResource_ImplBase
-
- org.apache.uima.collection.CollectionReader_ImplBase
-
- org.apache.uima.fit.component.JCasCollectionReader_ImplBase
-
- de.julielab.jcore.reader.bc2gm.BC2GMReader
-
- 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 BC2GMReader extends org.apache.uima.fit.component.JCasCollectionReader_ImplBase
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classBC2GMReader.GeneAnnotation
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPARAM_GENESstatic java.lang.StringPARAM_SENTENCES
-
Constructor Summary
Constructors Constructor Description BC2GMReader()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static java.util.TreeMap<java.lang.Integer,java.lang.Integer>createNumWsMap(java.lang.String input)Returns a map where for each white space position, the number of preceding non-whitespace characters from the beginning of input is returned.
Thus, for each character-based offset o, the non-whitespace offset may be retrieved using the floor entry for o, retrieving its value and subtracting it from o.voidgetNext(org.apache.uima.jcas.JCas cas)org.apache.uima.util.Progress[]getProgress()booleanhasNext()voidinitialize(org.apache.uima.UimaContext context)-
Methods inherited from class org.apache.uima.fit.component.JCasCollectionReader_ImplBase
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, getRelativePathResolver, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger, setMetaData
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
PARAM_SENTENCES
public static final java.lang.String PARAM_SENTENCES
- See Also:
- Constant Field Values
-
PARAM_GENES
public static final java.lang.String PARAM_GENES
- See Also:
- Constant Field Values
-
-
Method Detail
-
createNumWsMap
public static java.util.TreeMap<java.lang.Integer,java.lang.Integer> createNumWsMap(java.lang.String input)
Returns a map where for each white space position, the number of preceding non-whitespace characters from the beginning of input is returned.
Thus, for each character-based offset o, the non-whitespace offset may be retrieved using the floor entry for o, retrieving its value and subtracting it from o.- Parameters:
input-- Returns:
-
initialize
public void initialize(org.apache.uima.UimaContext context) throws org.apache.uima.resource.ResourceInitializationException- Overrides:
initializein classorg.apache.uima.fit.component.JCasCollectionReader_ImplBase- Throws:
org.apache.uima.resource.ResourceInitializationException
-
getNext
public void getNext(org.apache.uima.jcas.JCas cas) throws java.io.IOException, org.apache.uima.collection.CollectionException- Specified by:
getNextin classorg.apache.uima.fit.component.JCasCollectionReader_ImplBase- Throws:
java.io.IOExceptionorg.apache.uima.collection.CollectionException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfaceorg.apache.uima.collection.base_cpm.BaseCollectionReader- Overrides:
closein classorg.apache.uima.fit.component.JCasCollectionReader_ImplBase- Throws:
java.io.IOException
-
getProgress
public org.apache.uima.util.Progress[] getProgress()
-
hasNext
public boolean hasNext() throws java.io.IOException, org.apache.uima.collection.CollectionException- Throws:
java.io.IOExceptionorg.apache.uima.collection.CollectionException
-
-