public class RunAE extends Object implements StatusCallbackListener
CollectionProcessingEngine
to drive the processing. For a simpler introduction to using
AEs in an application, see ExampleApplication
.
Usage: java org.apache.uima.examples.RunAE [OPTIONS]
<AE descriptor or JAR file name> <input dir>
[<output dir>]
If output dir
is not specified, the analysis results will not be output. This can
be useful when only interested in performance statistics.
OPTIONS
-t <TagName> (XML Text Tag) - specifies the name of an XML tag, found within the input
documents, that contains the text to be analyzed. The text will also be detagged. If this option
is not specified, the entire document will be processed.
-l <ISO code> (Language) - specifies the ISO code for the language of the input documents.
Some AEs (e.g. PersonTitleAnnotator) require this.
-e <Encoding> - specifies character encoding of the input documents. The default is UTF-8.
-q (Quiet) - supresses progress messages that are normally printed as each document is processed.
-s<x> (Stats level) - determines the verboseness of performance statistics. s0=none,
s1=brief, s2=full. The default is brief.
-x - process input files as XCAS files.
Modifier and Type | Method and Description |
---|---|
void |
aborted()
Called when the processing has been aborted.
|
void |
batchProcessComplete()
Called when the processing of a batch has completed.
|
void |
collectionProcessComplete()
Called when the processing of an entire collection has completed.
|
void |
entityProcessComplete(CAS aCas,
EntityProcessStatus aStatus)
Called when the processing of each entity has completed.
|
void |
initializationComplete()
Called when the Collection Processing Manager's initialization has completed.
|
static void |
main(String[] args) |
void |
paused()
Called when the processing has been paused.
|
void |
resumed()
Called when the processing has been resumed (after it had been previously paused).
|
public RunAE(String[] args)
public void initializationComplete()
BaseStatusCallbackListener
initializationComplete
in interface BaseStatusCallbackListener
BaseStatusCallbackListener.initializationComplete()
public void entityProcessComplete(CAS aCas, EntityProcessStatus aStatus)
StatusCallbackListener
entityProcessComplete
in interface StatusCallbackListener
aCas
- the CAS containing the processed entity and the analysis resultsaStatus
- the status of the processing. This object contains a record of any Exception that
occurred, as well as timing information.StatusCallbackListener.entityProcessComplete(org.apache.uima.cas.CAS,
org.apache.uima.collection.EntityProcessStatus)
public void aborted()
BaseStatusCallbackListener
aborted
in interface BaseStatusCallbackListener
BaseStatusCallbackListener.aborted()
public void batchProcessComplete()
BaseStatusCallbackListener
batchProcessComplete
in interface BaseStatusCallbackListener
BaseStatusCallbackListener.batchProcessComplete()
public void collectionProcessComplete()
BaseStatusCallbackListener
collectionProcessComplete
in interface BaseStatusCallbackListener
BaseStatusCallbackListener.collectionProcessComplete()
public void paused()
BaseStatusCallbackListener
paused
in interface BaseStatusCallbackListener
BaseStatusCallbackListener.paused()
public void resumed()
BaseStatusCallbackListener
resumed
in interface BaseStatusCallbackListener
BaseStatusCallbackListener.resumed()
public static void main(String[] args)
Copyright © 2014. All rights reserved.