@PipeBitInfo(name="OpenNLP POS Reader", description="Reads in part-of-speech training/test data in the OpenNLP format.", role=READER, products={BASE_TOKEN,SENTENCE}) public class OpenNLPPOSCollectionReader extends org.apache.uima.collection.CollectionReader_ImplBase
Modifier and Type | Field and Description |
---|---|
static String |
LOAD_WORDS_ONLY_PARAM
"LoadWordsOnly" is a optional, single, boolean parameter that determines
whether or not the part-of-speech tags associated with each word will be
loaded into the CAS or not.
|
static String |
POS_DATA_FILE_PARAM
"PosDataFile" is a required, single, string parameter that specifies the
location of a data file that contains part-of-speech data in it.
|
Constructor and Description |
---|
OpenNLPPOSCollectionReader() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
getNext(org.apache.uima.cas.CAS cas)
Some of the code in this method is based loosely on
opennlp.tools.postag.POSEventCollector
|
org.apache.uima.util.Progress[] |
getProgress() |
boolean |
hasNext() |
void |
initialize() |
destroy, getCasInitializer, getProcessingResourceMetaData, initialize, isConsuming, reconfigure, setCasInitializer, typeSystemInit
getConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValue
getCasManager, getLogger, getMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger, setMetaData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static final String POS_DATA_FILE_PARAM
IL-2_NN gene_NN expression_NN and_CC ...
public static final String LOAD_WORDS_ONLY_PARAM
public void initialize() throws org.apache.uima.resource.ResourceInitializationException
initialize
in class org.apache.uima.collection.CollectionReader_ImplBase
org.apache.uima.resource.ResourceInitializationException
public void getNext(org.apache.uima.cas.CAS cas) throws IOException, org.apache.uima.collection.CollectionException
IOException
org.apache.uima.collection.CollectionException
public void close() throws IOException
IOException
public org.apache.uima.util.Progress[] getProgress()
public boolean hasNext() throws IOException, org.apache.uima.collection.CollectionException
IOException
org.apache.uima.collection.CollectionException
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.