Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

relax_tagger Class Reference

The class relax_tagger implements a PoS tagger based on relaxation labelling algorithm. More...

#include <relax_tagger.h>

Inheritance diagram for relax_tagger:

Inheritance graph
[legend]
Collaboration diagram for relax_tagger:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 relax_tagger (const string &, int, double, double, bool)
 Constructor, given the constraints file and config parameters.
void analyze (list< sentence > &)
 analyze sentences with default options
list< sentenceanalyze (const list< sentence > &)
 analyze sentences, return analyzed copy

Private Member Functions

bool CheckCondition (const sentence &, sentence::const_iterator, int, const condition &, list< list< pair< int, int > > > &) const
 check a condition of a RuleCG.
bool CheckWordMatchCondition (const list< string > &, bool, int, sentence::const_iterator, list< pair< int, int > > &) const
 check whether a word matches a simple list of terms.
bool check_possible_matching (const string &, word::const_iterator, sentence::const_iterator) const
 check whether a word matches one of all possible condition patterns
bool check_match (const string &, const string &) const
 check a match of two literals, taking into account lemma, tag, wildcards, etc.

Private Attributes

relax solver
 Generic solver instance.
constraint_grammar c_gram
 PoS constraints.

Detailed Description

The class relax_tagger implements a PoS tagger based on relaxation labelling algorithm.

It does so using the generic solver implemented by class relax.


Constructor & Destructor Documentation

relax_tagger::relax_tagger const string &  ,
int  ,
double  ,
double  ,
bool 
 

Constructor, given the constraints file and config parameters.


Member Function Documentation

list<sentence> relax_tagger::analyze const list< sentence > &   ) 
 

analyze sentences, return analyzed copy

void relax_tagger::analyze list< sentence > &   )  [virtual]
 

analyze sentences with default options

Implements POS_tagger.

bool relax_tagger::check_match const string &  ,
const string & 
const [private]
 

check a match of two literals, taking into account lemma, tag, wildcards, etc.

bool relax_tagger::check_possible_matching const string &  ,
word::const_iterator  ,
sentence::const_iterator 
const [private]
 

check whether a word matches one of all possible condition patterns

bool relax_tagger::CheckCondition const sentence ,
sentence::const_iterator  ,
int  ,
const condition ,
list< list< pair< int, int > > > & 
const [private]
 

check a condition of a RuleCG.

Add to the given constraint& solver-encoded constraint info for the condition

bool relax_tagger::CheckWordMatchCondition const list< string > &  ,
bool  ,
int  ,
sentence::const_iterator  ,
list< pair< int, int > > & 
const [private]
 

check whether a word matches a simple list of terms.

Return (via list<pair<int,int>>&) a solver-encoded term for the condition


Member Data Documentation

constraint_grammar relax_tagger::c_gram [private]
 

PoS constraints.

relax relax_tagger::solver [private]
 

Generic solver instance.


The documentation for this class was generated from the following file:
Generated on Wed Apr 26 12:58:52 2006 for FreeLing by  doxygen 1.4.4