@PipeBitInfo(name="Dependency File Reader", description="Reads in dependency tree training/test data in a tab-delimited format.", role=READER, products={BASE_TOKEN,SENTENCE,DEPENDENCY_NODE}) public class DependencyFileCollectionReader extends org.apache.uima.collection.CollectionReader_ImplBase
Modifier and Type | Field and Description |
---|---|
static String |
DEPENDENCY_FILE_PARAM
"DependencyFile" is a required, single, string parameter that specifies the
location of a data file that contains dependency data in it.
|
static String |
INPUT_FORMAT_PARAM
"InputFormat" is a optional, single, boolean parameter that determines
whether or not the features associated with each word will be
loaded into the CAS or not.
|
static String |
TRAINING_MODE_PARAM |
Constructor and Description |
---|
DependencyFileCollectionReader() |
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 DEPENDENCY_FILE_PARAM
public static final String INPUT_FORMAT_PARAM
public static final String TRAINING_MODE_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.