Class Evaluator
java.lang.Object
org.apache.uima.analysis_component.AnalysisComponent_ImplBase
org.apache.uima.analysis_component.Annotator_ImplBase
org.apache.uima.analysis_component.JCasAnnotator_ImplBase
org.apache.uima.fit.component.JCasAnnotator_ImplBase
org.apache.uima.fit.examples.experiment.pos.Evaluator
- All Implemented Interfaces:
AnalysisComponent
This AE evaluates the system part-of-speech tags against the gold part-of-speech tags. This is a
very simple approach to evaluation of part-of-speech tags that will not likely suffice in
real-world scenarios for a number of reasons (e.g. no confusion matrix, assumes gold-standard
tokens and sentences in the system view, etc.)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidNotifies this AnalysisComponent that processing of an entire collection has been completed.voidThis method should be overriden by subclasses.Methods inherited from class org.apache.uima.fit.component.JCasAnnotator_ImplBase
initializeMethods inherited from class org.apache.uima.analysis_component.JCasAnnotator_ImplBase
getRequiredCasInterface, processMethods inherited from class org.apache.uima.analysis_component.Annotator_ImplBase
getCasInstancesRequired, hasNext, nextMethods inherited from class org.apache.uima.analysis_component.AnalysisComponent_ImplBase
batchProcessComplete, destroy, getContext, getLogger, getResultSpecification, reconfigure, setResultSpecification
-
Constructor Details
-
Evaluator
public Evaluator()
-
-
Method Details
-
process
Description copied from class:JCasAnnotator_ImplBaseThis method should be overriden by subclasses. Inputs a JCAS to the AnalysisComponent. The AnalysisComponent "owns" this JCAS until such time asAnnotator_ImplBase.hasNext()is called and returns false (seeAnalysisComponentfor details).- Specified by:
processin classJCasAnnotator_ImplBase- Parameters:
jCas- a JCAS that this AnalysisComponent should process.- Throws:
AnalysisEngineProcessException- if a problem occurs during processing
-
collectionProcessComplete
Description copied from interface:AnalysisComponentNotifies this AnalysisComponent that processing of an entire collection has been completed. In this method, this component should finish writing any output relating to the current collection.- Specified by:
collectionProcessCompletein interfaceAnalysisComponent- Overrides:
collectionProcessCompletein classAnalysisComponent_ImplBase- Throws:
AnalysisEngineProcessException- if this component encounters a problem in its end-of-collection processing
-