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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Notifies this AnalysisComponent that processing of an entire collection has been completed.void
This method should be overriden by subclasses.Methods inherited from class org.apache.uima.fit.component.JCasAnnotator_ImplBase
initialize
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, destroy, getContext, getLogger, getResultSpecification, reconfigure, setResultSpecification
-
Constructor Details
-
Evaluator
public Evaluator()
-
-
Method Details
-
process
Description copied from class:JCasAnnotator_ImplBase
This 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 (seeAnalysisComponent
for details).- Specified by:
process
in classJCasAnnotator_ImplBase
- Parameters:
jCas
- a JCAS that this AnalysisComponent should process.- Throws:
AnalysisEngineProcessException
- if a problem occurs during processing
-
collectionProcessComplete
Description copied from interface:AnalysisComponent
Notifies 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:
collectionProcessComplete
in interfaceAnalysisComponent
- Overrides:
collectionProcessComplete
in classAnalysisComponent_ImplBase
- Throws:
AnalysisEngineProcessException
- if this component encounters a problem in its end-of-collection processing
-