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

locutions Class Reference

Class locutions recognizes multiwords belonging to a list obtained from a configuration file. More...

#include <locutions.h>

Inheritance diagram for locutions:

Inheritance graph
[legend]
Collaboration diagram for locutions:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 locutions (const maco_options &)
 Constructor.

Private Member Functions

void check (const string, list< string > &, bool &, bool &)
int ComputeToken (int, sentence::const_iterator, const sentence &)
 Compute the right token code for word j from given state.
void ResetActions ()
 Reset current multiword acumulator.
void StateActions (int, int, int, sentence::const_iterator)
 Perform necessary actions in "state" reached from state "origin" via word j interpreted as code "token": Basically, when reaching a state, update accumulated multiword.
void SetMultiwordAnalysis (sentence::iterator) const
 Set the appropriate lemma and parole for the new multiword.

Private Attributes

map< string, string > locut
 store multiword list
set< string > prefixes
 store multiword prefixes
list< string > acc_mw
 partially build multiword.
list< string > longest_mw
vector< wordcomponents
 store mw components in case we need to recover them

Detailed Description

Class locutions recognizes multiwords belonging to a list obtained from a configuration file.


Constructor & Destructor Documentation

locutions::locutions const maco_options  ) 
 

Constructor.


Member Function Documentation

void locutions::check const   string,
list< string > &  ,
bool ,
bool
[private]
 

int locutions::ComputeToken int  ,
sentence::const_iterator  ,
const sentence
[private, virtual]
 

Compute the right token code for word j from given state.

Implements automat.

void locutions::ResetActions  )  [private, virtual]
 

Reset current multiword acumulator.

Implements automat.

void locutions::SetMultiwordAnalysis sentence::iterator   )  const [private, virtual]
 

Set the appropriate lemma and parole for the new multiword.

Implements automat.

void locutions::StateActions int  ,
int  ,
int  ,
sentence::const_iterator 
[private, virtual]
 

Perform necessary actions in "state" reached from state "origin" via word j interpreted as code "token": Basically, when reaching a state, update accumulated multiword.

Implements automat.


Member Data Documentation

list<string> locutions::acc_mw [private]
 

partially build multiword.

vector<word> locutions::components [private]
 

store mw components in case we need to recover them

map<string,string> locutions::locut [private]
 

store multiword list

list<string> locutions::longest_mw [private]
 

set<string> locutions::prefixes [private]
 

store multiword prefixes


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