public class UimacppEngine extends Object
| Constructor and Description |
|---|
UimacppEngine() |
| Modifier and Type | Method and Description |
|---|---|
void |
batchProcessComplete()
batchProcessComplete
|
void |
collectionProcessComplete()
CasConsumer collectionProcessComplete
|
static void |
configureResourceManager(String workDirectory,
String dataDirectory)
Configure the TAF Resource Manager.
|
static UimacppEngine |
createJTafTAE(String configFile)
create a TAF engine with a config file
|
void |
destroy()
de-initializes the TAF engine.
|
protected void |
finalize() |
static String |
getErrorMessage(long errorCode)
helper function to get the error message for some TAF error ID.
|
static String |
getTafJNIVersion()
helper function to get the TAF JNI version.
|
boolean |
hasNext()
hasNext
|
void |
next(CAS segment)
next
|
void |
process(ResultSpecification rs,
CAS aCas,
boolean casIsEmpty)
process the document.
|
public UimacppEngine()
throws UimacppException
UimacppExceptionpublic static void configureResourceManager(String workDirectory, String dataDirectory) throws UimacppException
UimacppExceptionpublic static UimacppEngine createJTafTAE(String configFile) throws UimacppException
UimacppExceptionpublic void destroy()
throws UimacppException
UimacppExceptionpublic void process(ResultSpecification rs, CAS aCas, boolean casIsEmpty) throws UimacppException
UimacppExceptionpublic boolean hasNext()
throws UimacppException
UimacppExceptionpublic void next(CAS segment) throws UimacppException
UimacppExceptionpublic void batchProcessComplete()
throws UimacppException
UimacppExceptionpublic void collectionProcessComplete()
throws UimacppException
UimacppExceptionpublic static String getErrorMessage(long errorCode) throws UimacppException
UimacppExceptionpublic static String getTafJNIVersion() throws UimacppException
UimacppExceptionCopyright © 2006–2013 The Apache Software Foundation. All rights reserved.