public class OpenNLPPOSCollectionReader
extends CollectionReader_ImplBase
Modifier and Type | Field and Description |
---|---|
(package private) java.io.BufferedReader |
input |
(package private) java.lang.String |
line |
static java.lang.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.
|
(package private) boolean |
loadWordsOnly |
static java.lang.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(CAS cas)
Some of the code in this method is based loosely on
opennlp.tools.postag.POSEventCollector
|
Progress[] |
getProgress() |
boolean |
hasNext() |
void |
initialize() |
public static final java.lang.String POS_DATA_FILE_PARAM
IL-2_NN gene_NN expression_NN and_CC ...
public static final java.lang.String LOAD_WORDS_ONLY_PARAM
java.io.BufferedReader input
java.lang.String line
boolean loadWordsOnly
public void initialize() throws ResourceInitializationException
ResourceInitializationException
public void getNext(CAS cas) throws java.io.IOException, CollectionException
java.io.IOException
CollectionException
public void close() throws java.io.IOException
java.io.IOException
public Progress[] getProgress()
public boolean hasNext() throws java.io.IOException, CollectionException
java.io.IOException
CollectionException