10 #ifndef META_LANGUAGE_MODEL_H_
11 #define META_LANGUAGE_MODEL_H_
16 #include <unordered_map>
42 std::string
generate(
unsigned int seed)
const;
49 std::string
next_token(
const std::deque<std::string>& tokens,
58 double perplexity(
const std::string& tokens)
const;
72 double prob(std::deque<std::string> tokens)
const;
87 std::string
make_string(
const std::deque<std::string>& tokens)
const;
93 std::deque<std::string>
make_deque(
const std::string& tokens)
const;
100 <std::string, std::unordered_map<std::string, double>>
dist_;