blob: 069bb907d28d76012a389a3f11b9b3cd31c226d2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#include <string>
#include <map>
#include <list>
#include <vector>
using namespace::std;
#ifndef KGRAMSTATS_H
#define KGRAMSTATS_H
typedef list<string> kgram;
class kgramstats
{
public:
kgramstats(string corpus, int maxK);
map<string, int>* lookupExts(kgram tk);
int getMaxK();
vector<string> randomSentence(int n);
private:
int maxK;
map<kgram, map<string, int>* >* stats;
};
void printKgram(kgram k);
#endif
|