Tanl Linguistic Pipeline

Parser::PosTagger Struct Reference
[Dependency Parser]

Base class for POS taggers. More...

#include <PosTagger.h>

Inheritance diagram for Parser::PosTagger:
Parser::PennPosTagger

List of all members.

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.

Detailed Description

Base class for POS taggers.


Constructor & Destructor Documentation

Parser::PosTagger::PosTagger ( const char *  PosParameters  ) 

Argument.

Stub version of PosTagger, to replace the real PosTagger when not needed.

Parameters:
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.


Member Function Documentation

bool Parser::PosTagger::tag ( Tagged sentence  )  [virtual]

Perform POS tagging on the sentence represented by the words in.

Parameters:
sentence,and fill in the corresponding tags and lemmas
Returns:
true if tagging succeded.

Reimplemented in Parser::PennPosTagger.

Referenced by Tanl::TaggedSentenceReader::MoveNext().


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
 
Copyright © 2005-2011 G. Attardi. Generated on 4 Mar 2011 by doxygen 1.6.1.