org.cleartk.token.pos
Class POSAnnotator<TOKEN_TYPE extends org.apache.uima.jcas.tcas.Annotation,SENTENCE_TYPE extends org.apache.uima.jcas.tcas.Annotation>

java.lang.Object
  extended by org.apache.uima.analysis_component.AnalysisComponent_ImplBase
      extended by org.apache.uima.analysis_component.Annotator_ImplBase
          extended by org.apache.uima.analysis_component.JCasAnnotator_ImplBase
              extended by org.uimafit.component.JCasAnnotator_ImplBase
                  extended by org.cleartk.classifier.CleartkSequenceAnnotator<String>
                      extended by org.cleartk.token.pos.POSAnnotator<TOKEN_TYPE,SENTENCE_TYPE>
All Implemented Interfaces:
org.apache.uima.analysis_component.AnalysisComponent, org.uimafit.factory.initializable.Initializable
Direct Known Subclasses:
DefaultPOSAnnotator

public abstract class POSAnnotator<TOKEN_TYPE extends org.apache.uima.jcas.tcas.Annotation,SENTENCE_TYPE extends org.apache.uima.jcas.tcas.Annotation>
extends org.cleartk.classifier.CleartkSequenceAnnotator<String>


Copyright (c) 2009, Regents of the University of Colorado
All rights reserved.

Author:
Philip Ogren

Field Summary
protected  POSFeatureExtractor<TOKEN_TYPE,SENTENCE_TYPE> featureExtractor
           
static String PARAM_FEATURE_EXTRACTOR_CLASS_NAME
           
protected  org.apache.uima.cas.Type sentenceType
           
protected  org.apache.uima.cas.Type tokenType
           
protected  boolean typesInitialized
           
 
Fields inherited from class org.cleartk.classifier.CleartkSequenceAnnotator
classifier, dataWriter, PARAM_CLASSIFIER_FACTORY_CLASS_NAME, PARAM_DATA_WRITER_FACTORY_CLASS_NAME, PARAM_IS_TRAINING
 
Constructor Summary
POSAnnotator()
           
 
Method Summary
abstract  String getTag(org.apache.uima.jcas.JCas jCas, TOKEN_TYPE token)
           
 void initialize(org.apache.uima.UimaContext context)
           
protected  void initializeTypes(org.apache.uima.jcas.JCas jCas)
           
 void process(org.apache.uima.jcas.JCas jCas)
           
 void setFeatureExtractorClassName(String featureExtractorClassName)
           
abstract  void setTag(org.apache.uima.jcas.JCas jCas, TOKEN_TYPE token, String tag)
           
 
Methods inherited from class org.cleartk.classifier.CleartkSequenceAnnotator
classify, collectionProcessComplete, isTraining
 
Methods inherited from class org.uimafit.component.JCasAnnotator_ImplBase
getLogger
 
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, getResultSpecification, reconfigure, setResultSpecification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAM_FEATURE_EXTRACTOR_CLASS_NAME

public static final String PARAM_FEATURE_EXTRACTOR_CLASS_NAME

featureExtractor

protected POSFeatureExtractor<TOKEN_TYPE extends org.apache.uima.jcas.tcas.Annotation,SENTENCE_TYPE extends org.apache.uima.jcas.tcas.Annotation> featureExtractor

typesInitialized

protected boolean typesInitialized

tokenType

protected org.apache.uima.cas.Type tokenType

sentenceType

protected org.apache.uima.cas.Type sentenceType
Constructor Detail

POSAnnotator

public POSAnnotator()
Method Detail

initialize

public void initialize(org.apache.uima.UimaContext context)
                throws org.apache.uima.resource.ResourceInitializationException
Specified by:
initialize in interface org.apache.uima.analysis_component.AnalysisComponent
Specified by:
initialize in interface org.uimafit.factory.initializable.Initializable
Overrides:
initialize in class org.cleartk.classifier.CleartkSequenceAnnotator<String>
Throws:
org.apache.uima.resource.ResourceInitializationException

initializeTypes

protected void initializeTypes(org.apache.uima.jcas.JCas jCas)
                        throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException

process

public void process(org.apache.uima.jcas.JCas jCas)
             throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
Specified by:
process in class org.apache.uima.analysis_component.JCasAnnotator_ImplBase
Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException

setTag

public abstract void setTag(org.apache.uima.jcas.JCas jCas,
                            TOKEN_TYPE token,
                            String tag)

getTag

public abstract String getTag(org.apache.uima.jcas.JCas jCas,
                              TOKEN_TYPE token)

setFeatureExtractorClassName

public void setFeatureExtractorClassName(String featureExtractorClassName)


Copyright © 2012. All Rights Reserved.