#ifndef WORDUTILS_H #define WORDUTILS_H #include #include #include #include #include using namespace std; struct WordUtils { static map> load_data(const char *path); static vector predict_next_word(const string& input, const map>& word_frequencies, size_t count); static string load_file(const char *path); static vector split_string(const string& input, const char *delimiters); static string extract_url(const string& input); static vector create_tag(const map>& word_frequencies, unsigned int hash); static unsigned int hash_url(const string& input); }; #endif