Tanl Linguistic Pipeline

Tanl::Tagger Struct Reference
[Classifier]

Interface for tagging each token in a sentence with supplementary information, such as its part of speech. More...

#include <Tagger.h>

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

List of all members.

Public Member Functions

virtual std::vector< Token * > tag (std::vector< Token * > *)=0
Enumerator< std::vector< Token * > * > * pipe (Enumerator< std::vector< Token * > * > &ts)=0
 Create an Enumerator that pulls tokens from an Enumerator ts.

Detailed Description

Interface for tagging each token in a sentence with supplementary information, such as its part of speech.


Member Function Documentation

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

Create an Enumerator that pulls tokens from an Enumerator ts.

Parameters:
ts an Enumerator<vector<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< std::vector< Token * > *, std::vector< Token * > * >.


The documentation for this struct was generated from the following file:
 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.