#include #include #include #include using namespace::std; #ifndef KGRAMSTATS_H #define KGRAMSTATS_H typedef list kgram; class kgramstats { public: kgramstats(string corpus, int maxK); vector randomSentence(int n); private: typedef struct { int all; int titlecase; int uppercase; int period; int startquote; int endquote; int startparen; int endparen; int comma; string* token; } token_data; int maxK; map* >* stats; }; void printKgram(kgram k); std::string canonize(std::string f); #endif