Class DocumentCategorizer
java.lang.Object
org.apache.uima.analysis_component.AnalysisComponent_ImplBase
org.apache.uima.analysis_component.Annotator_ImplBase
org.apache.uima.analysis_component.CasAnnotator_ImplBase
opennlp.uima.doccat.AbstractDocumentCategorizer
opennlp.uima.doccat.DocumentCategorizer
- All Implemented Interfaces:
org.apache.uima.analysis_component.AnalysisComponent
A default implementation of an OpenNLP Document Categorizer.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.uima.cas.Featureprivate org.apache.uima.cas.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidsetBestCategory(org.apache.uima.cas.CAS tcas, String bestCategory) voidtypeSystemInit(org.apache.uima.cas.TypeSystem typeSystem) Methods inherited from class AbstractDocumentCategorizer
initialize, processMethods inherited from class org.apache.uima.analysis_component.CasAnnotator_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, collectionProcessComplete, destroy, getContext, getLogger, getResultSpecification, reconfigure, setResultSpecification
-
Field Details
-
mCategoryType
private org.apache.uima.cas.Type mCategoryType -
mCategoryFeature
private org.apache.uima.cas.Feature mCategoryFeature
-
-
Constructor Details
-
DocumentCategorizer
public DocumentCategorizer()
-
-
Method Details
-
typeSystemInit
public void typeSystemInit(org.apache.uima.cas.TypeSystem typeSystem) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException - Overrides:
typeSystemInitin classAbstractDocumentCategorizer- Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException
-
setBestCategory
- Specified by:
setBestCategoryin classAbstractDocumentCategorizer
-