POS_tagger Class Reference

The class POS_tagger is just an abstract class generalizing a PoS tagger. More...

#include <tagger.h>

Inheritance diagram for POS_tagger:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 POS_tagger (bool, unsigned int)
 Create an instance of the class, initializing options member.
virtual ~POS_tagger ()
virtual void analyze (std::list< sentence > &)=0

Protected Member Functions

void retokenize (std::list< sentence > &)
 Look for words whose selected tag has retokenizing rules, and retokenize them appropriately.
void force_select (std::list< sentence > &)
 Look for words with remaining ambiguity and force the selection of only one Pos tag.

Protected Attributes

bool retok
unsigned int force

Detailed Description

The class POS_tagger is just an abstract class generalizing a PoS tagger.


Constructor & Destructor Documentation

POS_tagger::POS_tagger ( bool  r,
unsigned int  f 
)

Create an instance of the class, initializing options member.

Since tagger is an abstract class, this is called always from child constructors.

virtual POS_tagger::~POS_tagger (  )  [inline, virtual]

Member Function Documentation

virtual void POS_tagger::analyze ( std::list< sentence > &   )  [pure virtual]

Implemented in hmm_tagger, and relax_tagger.

void POS_tagger::force_select ( std::list< sentence > &  ls  )  [protected]

Look for words with remaining ambiguity and force the selection of only one Pos tag.

References TRACE, and TRACE_SENTENCE.

Referenced by hmm_tagger::analyze().

void POS_tagger::retokenize ( std::list< sentence > &  ls  )  [protected]

Look for words whose selected tag has retokenizing rules, and retokenize them appropriately.

References TRACE, and TRACE_SENTENCE.

Referenced by hmm_tagger::analyze().


Member Data Documentation

unsigned int POS_tagger::force [protected]

Referenced by hmm_tagger::analyze().

bool POS_tagger::retok [protected]

Referenced by hmm_tagger::analyze().


The documentation for this class was generated from the following files:
Generated on Tue Jul 27 16:29:33 2010 for FreeLing by  doxygen 1.6.3