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

suffixes Class Reference

Class suffixes implements suffixation rules and dictionary search for suffixed word forms. More...

#include <suffixes.h>

Collaboration diagram for suffixes:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 suffixes (const maco_options &)
 Constructor.
void look_for_suffixes (word &, dictionary &) const
 look up possible roots of a suffixed form

Private Member Functions

void look_for_suffixes_in_list (const multimap< string, sufrule > &, word &, dictionary &) const
 auxiliary methods to deal with suffixing
vector< string > GenerateRoots (const sufrule &, const string &) const
 auxiliary methods to deal with suffixing
void SearchRootsList (const vector< string > &, const sufrule &, word &, dictionary &) const
 auxiliary methods to deal with suffixing
void CheckRetokenizable (const sufrule &, const string &, const string &, const string &, dictionary &, list< word > &) const
 auxiliary method to deal with retokenization

Private Attributes

accents accen
 Language-specific accent handler.
multimap< string, sufrulesuffix
 all suffixation rules
multimap< string, sufrulesuffix_always
 suffixation rules applied unconditionally
set< unsigned int > ExistingLength
 array of existing suffix lengths.
unsigned int LongestSuf
 Length of longest suffix.

Detailed Description

Class suffixes implements suffixation rules and dictionary search for suffixed word forms.


Constructor & Destructor Documentation

suffixes::suffixes const maco_options  ) 
 

Constructor.


Member Function Documentation

void suffixes::CheckRetokenizable const sufrule ,
const string &  ,
const string &  ,
const string &  ,
dictionary ,
list< word > & 
const [private]
 

auxiliary method to deal with retokenization

vector< string > suffixes::GenerateRoots const sufrule ,
const string & 
const [private]
 

auxiliary methods to deal with suffixing

void suffixes::look_for_suffixes word w,
dictionary dic
const
 

look up possible roots of a suffixed form

Words already analyzed are only applied the "always"-marked suffix rules. So-far unrecognized words, are applied all the sufix rules.

void suffixes::look_for_suffixes_in_list const multimap< string, sufrule > &  ,
word ,
dictionary
const [private]
 

auxiliary methods to deal with suffixing

void suffixes::SearchRootsList const vector< string > &  ,
const sufrule ,
word ,
dictionary
const [private]
 

auxiliary methods to deal with suffixing


Member Data Documentation

accents suffixes::accen [private]
 

Language-specific accent handler.

set<unsigned int> suffixes::ExistingLength [private]
 

array of existing suffix lengths.

unsigned int suffixes::LongestSuf [private]
 

Length of longest suffix.

multimap<string,sufrule> suffixes::suffix [private]
 

all suffixation rules

multimap<string,sufrule> suffixes::suffix_always [private]
 

suffixation rules applied unconditionally


The documentation for this class was generated from the following files:
Generated on Wed Apr 26 12:59:15 2006 for FreeLing by  doxygen 1.4.4