public class PropbankGoldReader extends org.apache.uima.fit.component.JCasCollectionReader_ImplBase
PropbankCollectionReader reads all .mrg files of the WSJ part of Treebank in lexical order, then reads the corresponding Propbank entries, and populates the "TreebankView" and "PropbankView" SOFAs.
| Modifier and Type | Field and Description |
|---|---|
static String |
PARAM_PENNTREEBANK_DIRECTORY_NAME |
static String |
PARAM_PROPBANK_FILE_NAME |
static String |
PARAM_WSJ_SECTIONS |
protected LinkedList<String> |
propbankData
holds all of the propbank data from props.txt.
|
protected int |
totalTreebankFiles |
protected File |
treebankDirectory |
protected LinkedList<File> |
treebankFiles |
protected ListSpecification |
wsjSpecification |
PARAM_AGGREGATE_SOFA_MAPPINGS, PARAM_CONFIG_MANAGER, PARAM_CONFIG_PARAM_SETTINGS, PARAM_EXTERNAL_OVERRIDE_SETTINGS, PARAM_PERFORMANCE_TUNING_SETTINGS, PARAM_RESOURCE_MANAGER, PARAM_UIMA_CONTEXT| Constructor and Description |
|---|
PropbankGoldReader() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
getNext(JCas jCas)
Reads the next file and stores its text in cas as the "TreebankView" SOFA.
|
Progress[] |
getProgress() |
boolean |
hasNext() |
void |
initialize(UimaContext context) |
void |
setPenntreebankDirectoryName(String treebankDirectoryName) |
void |
setPropbankFileName(String propbankFileName) |
void |
setWsjSections(String wsjSections) |
getLogger, getNext, initializedestroy, getCasInitializer, getProcessingResourceMetaData, initialize, isConsuming, reconfigure, setCasInitializer, typeSystemInitgetConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValuegetCasManager, getMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger, setMetaDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValuegetMetaData, getResourceManager, getUimaContext, getUimaContextAdmin, setLoggerpublic static final String PARAM_PENNTREEBANK_DIRECTORY_NAME
public static final String PARAM_PROPBANK_FILE_NAME
public static final String PARAM_WSJ_SECTIONS
protected LinkedList<String> propbankData
protected int totalTreebankFiles
protected File treebankDirectory
protected LinkedList<File> treebankFiles
protected ListSpecification wsjSpecification
public PropbankGoldReader()
public void close() throws IOException
close in interface BaseCollectionReaderclose in class org.apache.uima.fit.component.JCasCollectionReader_ImplBaseIOExceptionpublic void getNext(JCas jCas) throws IOException, CollectionException
getNext in class org.apache.uima.fit.component.JCasCollectionReader_ImplBaseIOExceptionCollectionExceptionpublic Progress[] getProgress()
public boolean hasNext() throws IOException, CollectionException
IOExceptionCollectionExceptionpublic void initialize(UimaContext context) throws ResourceInitializationException
initialize in class org.apache.uima.fit.component.JCasCollectionReader_ImplBaseResourceInitializationExceptionpublic void setPenntreebankDirectoryName(String treebankDirectoryName)
public void setPropbankFileName(String propbankFileName)
public void setWsjSections(String wsjSections)
Copyright © 2014. All rights reserved.