UIMA Analysis Engine that invokes HMM POS tagger. HMM POS tagger generates part-of-speech tags for every token. This annotator assumes that sentences and tokens have already been annotated in the CAS with Sentence and Token annotations, respectively. We iterate over sentences, then iterate over tokens in the current sentence to accumulate a list of words, then invoke the HMM POS tagger on the list of words. For each Token we then update the posTag field with the POS tag. The model file for the HMM POS tagger is specified as a parameter (MODEL_FILE_PARAM).
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.