about summary refs log tree commit diff stats
path: root/data/maps/the_crystalline/rooms/Main Area.txtpb
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2025-09-28 21:56:56 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2025-09-28 21:56:56 -0400
commitb0b7e55a0244b8d620a791cb49a816817e81b658 (patch)
tree680722a2cc4cd66e6b35c2af67462ea9afc43f06 /data/maps/the_crystalline/rooms/Main Area.txtpb
parent0e7d422469253be961cef9b3aeecbf3e213da1ea (diff)
downloadlingo2-archipelago-b0b7e55a0244b8d620a791cb49a816817e81b658.tar.gz
lingo2-archipelago-b0b7e55a0244b8d620a791cb49a816817e81b658.tar.bz2
lingo2-archipelago-b0b7e55a0244b8d620a791cb49a816817e81b658.zip
Fix crash when hinting
Diffstat (limited to 'data/maps/the_crystalline/rooms/Main Area.txtpb')
0 files changed, 0 insertions, 0 deletions
13' href='#n13'>13 14 15 16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35















                                            


                                             





                              
                              
                     
                 
                                                   


                         
                                    

     
#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);
	vector<string> randomSentence(int n);
	
private:
	typedef struct
	{
		int all;
		int titlecase;
		int uppercase;
		int period;
		string* token;
	} token_data;
	int maxK;
	map<kgram, map<int, token_data*>* >* stats;
};

void printKgram(kgram k);
std::string canonize(std::string f);

#endif