Skip to content

ctakes pos tagger

Sean Finan edited this page Sep 21, 2024 · 3 revisions

Provides a UIMA wrapper around the popular OpenNLP part-of-speech tagger.
The UIMA examples project provides a default wrapper from which we have borrowed liberally. We have created our own wrapper so that it will work better with our type system and to add features and supporting components.

Collection Readers
Annotation Engines


Collection Readers

OpenNLP POS Reader

Reads in part-of-speech training/test data in the OpenNLP format.

Source class: OpenNLPPOSCollectionReader
Source package: org.apache.ctakes.postagger
Parent class: org.apache.uima.collection.CollectionReader_ImplBase
Products: Base Token, Sentence

No available configuration parameters.


Annotation Engines

ClearNLP POS Tagger

Adds Parts of Speech to Annotations.

Source class: ClearNLPPOSTaggerAE
Source package: org.apache.ctakes.postagger
Parent class: org.apache.uima.fit.component.JCasAnnotator_ImplBase
Dependencies: Sentence, Base Token

Parameter Description Class Required Default
POSModelFileName This parameter provides the file name of the Clear POS model required by the factory method provided by ClearNLPUtil. If not specified, this analysis engine will use a default model from the resources directory URI Yes

Part of Speech Tagger

Annotate Parts of Speech.

Source class: POSTagger
Source package: org.apache.ctakes.postagger
Parent class: org.apache.uima.fit.component.JCasAnnotator_ImplBase
Dependencies: Section, Sentence, Base Token

Parameter Description Class Required Default
PosModelFile Model file for OpenNLP POS tagger String No org/apache/ctakes/postagger/models/ mayo-pos.zip

Thread safe Part of Speech Tagger

Annotate Parts of Speech.

Source class: ThreadSafePosTagger
Source package: org.apache.ctakes.postagger.concurrent
Parent class: org.apache.ctakes.postagger.POSTagger
Dependencies: Section, Sentence, Base Token

Parameter Description Class Required Default
PosModelFile Model file for OpenNLP POS tagger String No org/apache/ctakes/postagger/models/ mayo-pos.zip
Clone this wiki locally