phonetics Class Reference

This class is a will calculate the phonetic translation of a word. More...

#include <phonetics.h>

Collaboration diagram for phonetics:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 phonetics (string, string, string, bool)
 Constructor with language, rule file, dictFile, sampaFile, useDictFile.
 ~phonetics ()
 Destructor.
string getSound (string)
 Returns the phonetic sound of the word.

Private Attributes

string language
 language freeling is working on
bool useDict
 If we use the dictionary for phonetic translation.
map< string, string > vars
 variables and valor extracted from rule file for the translation
map< string, string > cache
 internal chace with phonetic translation of previous words
vector< string > rules
 rules extracted from the rule file
map< string, string > SAMPA
 translation rules from the sampa file
map< string, string > DIC
 words and his phonetic translation from the dictionary file
soundChangesc
 class that apply the rules to the variables for the phonetic translation

Detailed Description

This class is a will calculate the phonetic translation of a word.


Constructor & Destructor Documentation

phonetics::phonetics ( string  ,
string  ,
string  ,
bool   
)

Constructor with language, rule file, dictFile, sampaFile, useDictFile.

phonetics::~phonetics (  ) 

Destructor.


Member Function Documentation

string phonetics::getSound ( string   ) 

Returns the phonetic sound of the word.


Member Data Documentation

map<string, string> phonetics::cache [private]

internal chace with phonetic translation of previous words

map<string, string> phonetics::DIC [private]

words and his phonetic translation from the dictionary file

string phonetics::language [private]

language freeling is working on

vector<string> phonetics::rules [private]

rules extracted from the rule file

map<string, string> phonetics::SAMPA [private]

translation rules from the sampa file

class that apply the rules to the variables for the phonetic translation

bool phonetics::useDict [private]

If we use the dictionary for phonetic translation.

map<string, string> phonetics::vars [private]

variables and valor extracted from rule file for the translation


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