@PipeBitInfo(name="Sentences Writer", description="Writes Text files with original text from the document, sentence by sentence.", role=WRITER, dependencies={DOCUMENT_ID,SENTENCE,BASE_TOKEN}) public class SentenceTokensPrinter extends org.apache.uima.collection.CasConsumer_ImplBase
Constructor and Description |
---|
SentenceTokensPrinter() |
Modifier and Type | Method and Description |
---|---|
void |
initialize()
Checks for parameter
OutputDirectory . |
void |
processCas(org.apache.uima.cas.CAS cas)
Saves the (base) tokens of each sentence on a separate line, separated by spaces
|
batchProcessComplete, collectionProcessComplete, destroy, getProcessingResourceMetaData, initialize, isReadOnly, isStateless, processCas, reconfigure, 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 void initialize() throws org.apache.uima.resource.ResourceInitializationException
OutputDirectory
. If present then files will be saved, if not stdout is used.
initialize
in class org.apache.uima.collection.CasConsumer_ImplBase
org.apache.uima.resource.ResourceInitializationException
- if parameter OutputDirectory
has an invalid valuepublic void processCas(org.apache.uima.cas.CAS cas) throws org.apache.uima.resource.ResourceProcessException
org.apache.uima.resource.ResourceProcessException
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.