|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.uima.analysis_component.AnalysisComponent_ImplBase
org.apache.uima.analysis_component.Annotator_ImplBase
org.apache.uima.analysis_component.JCasAnnotator_ImplBase
org.apache.uima.examples.tagger.HMMModelTrainer
public class HMMModelTrainer
This analysis engine trains an N-gram model for the HMM tagger. It uses a training corpus as reference. This corpus must contain annotations on words with an attribute corresponding to the POS value to be learned. The configuration of this analysis engine is done through several parameters:
Field Summary | |
---|---|
static java.lang.String |
PARAM_FILE
Name of the parameter for the model export path |
static java.lang.String |
PARAM_POSFP
Name of the parameter for the feature path to the POS |
static java.lang.String |
PARAM_VIEW
Name of the parameter for the view |
Constructor Summary | |
---|---|
HMMModelTrainer()
|
Method Summary | |
---|---|
void |
collectionProcessComplete()
Called at the end of the processing. |
void |
initialize(org.apache.uima.UimaContext aContext)
Initialization of the component |
void |
process(org.apache.uima.jcas.JCas cas)
Processing. |
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 |
---|
public static java.lang.String PARAM_VIEW
public static java.lang.String PARAM_FILE
public static java.lang.String PARAM_POSFP
Constructor Detail |
---|
public HMMModelTrainer()
Method Detail |
---|
public void initialize(org.apache.uima.UimaContext aContext) throws org.apache.uima.resource.ResourceInitializationException
initialize
in interface org.apache.uima.analysis_component.AnalysisComponent
initialize
in class org.apache.uima.analysis_component.AnalysisComponent_ImplBase
org.apache.uima.resource.ResourceInitializationException
public void process(org.apache.uima.jcas.JCas cas) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
process
in class org.apache.uima.analysis_component.JCasAnnotator_ImplBase
org.apache.uima.analysis_engine.AnalysisEngineProcessException
public void collectionProcessComplete() throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
collectionProcessComplete
in interface org.apache.uima.analysis_component.AnalysisComponent
collectionProcessComplete
in class org.apache.uima.analysis_component.AnalysisComponent_ImplBase
org.apache.uima.analysis_engine.AnalysisEngineProcessException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |