|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.uima.analysis_component.AnalysisComponent_ImplBase
org.apache.uima.analysis_component.Annotator_ImplBase
org.apache.uima.analysis_component.JCasAnnotator_ImplBase
org.apache.uima.annotator.bsf.BSFAnnotator
public class BSFAnnotator
This class enables the Java scripting of an Annotator using the Apache Bean
Scripting Framework. It has a mandatory SourceFile attribute
containing the script's source file to execute.
| Field Summary | |
|---|---|
static String |
MESSAGE_DIGEST
|
static String |
PATH_SEPARATOR
|
static String |
SCRIPT_SOURCE_FILE
|
| Constructor Summary | |
|---|---|
BSFAnnotator()
|
|
| Method Summary | |
|---|---|
void |
initialize(org.apache.uima.UimaContext aContext)
Initializes the annotator by compiling the script. |
void |
process(org.apache.uima.jcas.JCas jcas)
Call the process function implemented in the script |
| Methods inherited from class org.apache.uima.analysis_component.JCasAnnotator_ImplBase |
|---|
getRequiredCasInterface, process |
| Methods inherited from class org.apache.uima.analysis_component.Annotator_ImplBase |
|---|
getCasInstancesRequired, hasNext, next |
| Methods inherited from class org.apache.uima.analysis_component.AnalysisComponent_ImplBase |
|---|
batchProcessComplete, collectionProcessComplete, destroy, getContext, getResultSpecification, reconfigure, setResultSpecification |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String MESSAGE_DIGEST
public static final String PATH_SEPARATOR
public static final String SCRIPT_SOURCE_FILE
| Constructor Detail |
|---|
public BSFAnnotator()
| Method Detail |
|---|
public void initialize(org.apache.uima.UimaContext aContext)
throws org.apache.uima.resource.ResourceInitializationException
initialize in interface org.apache.uima.analysis_component.AnalysisComponentinitialize in class org.apache.uima.analysis_component.AnalysisComponent_ImplBaseorg.apache.uima.resource.ResourceInitializationException
public void process(org.apache.uima.jcas.JCas jcas)
throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
process in class org.apache.uima.analysis_component.JCasAnnotator_ImplBaseorg.apache.uima.analysis_engine.AnalysisEngineProcessException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||