32 #include <fst/fstlib.h> 34 #include <unordered_map> 36 #include <mach/clock.h> 37 #include <mach/mach.h> 42 typedef unordered_map<LogArc::Label,LabelDatum>
LabelData;
44 string vec2str (vector<string> vec,
string sep);
53 vector<int>
tokenize2ints (
string* word,
string* sep,
const SymbolTable* syms);
57 timespec
diff (timespec start, timespec end);
63 std::vector<std::string>* corpus);
65 void Split (
const std::string& s,
char delim, std::vector<std::string>& elems);
string vec2str(vector< string > vec, string sep)
void PhonetisaurusSetFlags(const char *usage, int *argc, char ***argv, bool remove_flags)
void Split(const std::string &s, char delim, std::vector< std::string > &elems)
struct LabelDatum LabelDatum
vector< string > tokenize_entry(string *testword, string *sep, SymbolTable *syms)
unordered_map< LogArc::Label, LabelDatum > LabelData
void LoadWordList(const std::string &filename, std::vector< std::string > *corpus)
timespec diff(timespec start, timespec end)
vector< string > tokenize_utf8_string(string *utf8_string, string *delimiter)
vector< int > tokenize2ints(string *word, string *sep, const SymbolTable *syms)