Tanl Linguistic Pipeline

Tanl::POS::PosTagger Struct Reference

Inheritance diagram for Tanl::POS::PosTagger:
Tanl::IPipe< Tanl::Token *, std::vector< Tanl::Token * > * >

List of all members.

Public Member Functions

 PosTagger (const char *modelFiles)
 Argument.
Tanl::Enumerator< std::vector
< Tanl::Token * > * > * 
pipe (Tanl::Enumerator< Tanl::Token * > &ts)
 Create an Enumerator that pulls tokens from an Enumerator ts.

Constructor & Destructor Documentation

Tanl::POS::PosTagger::PosTagger ( const char *  modelFiles  ) 

Argument.

Parameters:
modelFiles is the name of the parameter file to be used by the tagger, and produced by training the tagger on an annotated corpus.

Member Function Documentation

Tanl::Enumerator< std::vector< Tanl::Token * > * > * Tanl::POS::PosTagger::pipe ( Tanl::Enumerator< Tanl::Token * > &  ts  )  [virtual]

Create an Enumerator that pulls tokens from an Enumerator ts.

Parameters:
ts an Enumerator<Token*> from which tokens are extracted in groups up to an EOS token, in order to form a sentence to tag.
Returns:
an Enumerator<vector<Token*>> of the tagged sentences produced by the tagger. The Token's in the result Enumerator are extensions of the corresponding input Token's with the addition of two attributes: POSTAG LEMMA whose values represent respectively: the POS tag and the lemma of the Token.

Implements Tanl::IPipe< Tanl::Token *, std::vector< Tanl::Token * > * >.


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.