This class is a will calculate the phonetic translation of a word. More...
#include <phonetics.h>
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 | |
soundChange * | sc |
class that apply the rules to the variables for the phonetic translation |
This class is a will calculate the phonetic translation of a word.
phonetics::phonetics | ( | string | , | |
string | , | |||
string | , | |||
bool | ||||
) |
Constructor with language, rule file, dictFile, sampaFile, useDictFile.
phonetics::~phonetics | ( | ) |
Destructor.
string phonetics::getSound | ( | string | ) |
Returns the phonetic sound of the word.
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
soundChange* phonetics::sc [private] |
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