Tanl Linguistic Pipeline |
Base class for POS taggers. More...
#include <PosTagger.h>
Public Member Functions | |
PosTagger (const char *PosParameters) | |
Argument. | |
virtual bool | tag (Tagged &sentence) |
Perform POS tagging on the sentence represented by the words in. | |
Public Attributes | |
WordSet | tags |
Set of tags used. |
Base class for POS taggers.
Parser::PosTagger::PosTagger | ( | const char * | PosParameters | ) |
Argument.
Stub version of PosTagger, to replace the real PosTagger when not needed.
PosParameters | is the name of the parameter file to be used by the tagger, and produced by training the tagger on an annotated corpus. |
References Tanl::Text::WordSetBase< _Hash, _Pred >::insert(), and tags.
bool Parser::PosTagger::tag | ( | Tagged & | sentence | ) | [virtual] |
Perform POS tagging on the sentence represented by the words in.
sentence,and | fill in the corresponding tags and lemmas |
Reimplemented in Parser::PennPosTagger.
Referenced by Tanl::TaggedSentenceReader::MoveNext().