replace std::deque + std::string with lm::sentence