|
Phonetisaurus
1.0
FST-based Grapheme-to-Phoneme conversion
|
Go to the source code of this file.
Typedefs | |
| typedef unordered_map< int, vector< PathData > > | RMAP |
Functions | |
| void | PrintPathData (const vector< PathData > &results, string FLAGS_word, const SymbolTable *osyms) |
| void | EvaluateWordlist (PhonetisaurusScript &decoder, vector< string > corpus, int FLAGS_beam, int FLAGS_nbest, bool FLAGS_reverse, string FLAGS_skip, double FLAGS_thresh, string FLAGS_gsep, bool FLAGS_write_fsts) |
| void | ThreadedEvalaateWordlist (string FLAGS_model, vector< string > corpus, int FLAGS_beam, int FLAGS_nbest, bool FLAGS_reverse, string FLAGS_skip, double FLAGS_thresh, string FLAGS_gsep, bool FLAGS_write_fsts, int FLAGS_threads) |
| DEFINE_string (model,"","Input FST G2P model.") | |
| DEFINE_string (word,"","Input word to phoneticize.") | |
| DEFINE_string (wordlist,"","Input wordlist to phoneticize") | |
| DEFINE_string (gsep,"","Grapheme separator.") | |
| DEFINE_string (skip,"_","Phoneme skip marker.") | |
| DEFINE_int32 (nbest, 1,"N-best hypotheses to output.") | |
| DEFINE_int32 (beam, 10000,"Decoder beam.") | |
| DEFINE_int32 (threads, 1,"Number of parallel threads.") | |
| DEFINE_double (thresh, 99.0,"N-best comparison threshold.") | |
| DEFINE_bool (write_fsts, false,"Write the output FSTs for debugging.") | |
| DEFINE_bool (reverse, false,"Reverse input word.") | |
| int | main (int argc, char *argv[]) |
Definition at line 40 of file phonetisaurus-g2pfst.cc.
| DEFINE_bool | ( | write_fsts | , |
| false | , | ||
| "Write the output FSTs for debugging." | |||
| ) |
| DEFINE_bool | ( | reverse | , |
| false | , | ||
| "Reverse input word." | |||
| ) |
| DEFINE_double | ( | thresh | , |
| 99. | 0, | ||
| "N-best comparison threshold." | |||
| ) |
| DEFINE_int32 | ( | nbest | , |
| 1 | , | ||
| "N-best hypotheses to output." | |||
| ) |
| DEFINE_int32 | ( | beam | , |
| 10000 | , | ||
| "Decoder beam." | |||
| ) |
| DEFINE_int32 | ( | threads | , |
| 1 | , | ||
| "Number of parallel threads." | |||
| ) |
| DEFINE_string | ( | model | , |
| "" | , | ||
| "Input FST G2P model." | |||
| ) |
| DEFINE_string | ( | word | , |
| "" | , | ||
| "Input word to phoneticize." | |||
| ) |
| DEFINE_string | ( | wordlist | , |
| "" | , | ||
| "Input wordlist to phoneticize" | |||
| ) |
| DEFINE_string | ( | gsep | , |
| "" | , | ||
| "Grapheme separator." | |||
| ) |
| DEFINE_string | ( | skip | , |
| "_" | , | ||
| "Phoneme skip marker." | |||
| ) |
| void EvaluateWordlist | ( | PhonetisaurusScript & | decoder, |
| vector< string > | corpus, | ||
| int | FLAGS_beam, | ||
| int | FLAGS_nbest, | ||
| bool | FLAGS_reverse, | ||
| string | FLAGS_skip, | ||
| double | FLAGS_thresh, | ||
| string | FLAGS_gsep, | ||
| bool | FLAGS_write_fsts | ||
| ) |
Definition at line 56 of file phonetisaurus-g2pfst.cc.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 111 of file phonetisaurus-g2pfst.cc.
| void PrintPathData | ( | const vector< PathData > & | results, |
| string | FLAGS_word, | ||
| const SymbolTable * | osyms | ||
| ) |
Definition at line 42 of file phonetisaurus-g2pfst.cc.
| void ThreadedEvalaateWordlist | ( | string | FLAGS_model, |
| vector< string > | corpus, | ||
| int | FLAGS_beam, | ||
| int | FLAGS_nbest, | ||
| bool | FLAGS_reverse, | ||
| string | FLAGS_skip, | ||
| double | FLAGS_thresh, | ||
| string | FLAGS_gsep, | ||
| bool | FLAGS_write_fsts, | ||
| int | FLAGS_threads | ||
| ) |
Definition at line 68 of file phonetisaurus-g2pfst.cc.
1.8.11