org.apache.uima.examples.tagger
Interface Tagger

All Known Implementing Classes:
HMMTagger

public interface Tagger

General tagger interface in case one would want to define further types of taggers. Known implementations: HMMTagger using Viterbi algorithm to compute the most probable path of parts of speech for a given sequence of tokens

See Also:
Viterbi, HMMTagger

Method Summary
 void initialize(org.apache.uima.UimaContext aContext)
          Instantiates MODEL for current tagger
 void process(org.apache.uima.jcas.JCas aJCas)
          Trains a new model for tagger, if a training is defined in tagger.properties file
 

Method Detail

initialize

void initialize(org.apache.uima.UimaContext aContext)
                throws org.apache.uima.resource.ResourceInitializationException
Instantiates MODEL for current tagger

Throws:
org.apache.uima.resource.ResourceInitializationException

process

void process(org.apache.uima.jcas.JCas aJCas)
             throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
Trains a new model for tagger, if a training is defined in tagger.properties file

Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException
See Also:
org.apache.uima.examples.tagger.trainAndTest


Copyright © 2011. All Rights Reserved.