|
1
2
3
4
5
6
7
8
9
10
|
/*
* File: segrules.hpp
* Author: mlenart
*
* Created on 25 luty 2014, 16:35
*/
#ifndef SEGRULES_HPP
#define SEGRULES_HPP
|
|
11
12
13
|
#include <utility>
#include <map>
#include <string>
|
|
14
|
#include <vector>
|
|
15
|
#include "SegrulesFSA.hpp"
|
|
16
|
|
|
17
18
|
namespace morfeusz {
|
|
19
|
typedef std::map<std::string, std::string> SegrulesOptions;
|
|
20
21
|
//typedef State<unsigned char> SegrulesStateType;
//typedef FSA<unsigned char> SegrulesFSAType;
|
|
22
|
|
|
23
|
std::map<SegrulesOptions, SegrulesFSA*> createSegrulesFSAsMap(const unsigned char* analyzerPtr);
|
|
24
|
SegrulesOptions getDefaultSegrulesOptions(const unsigned char* ptr);
|
|
25
|
SegrulesFSA* getDefaultSegrulesFSA(const std::map<SegrulesOptions, SegrulesFSA*>& map, const unsigned char* analyzerPtr);
|
|
26
|
std::vector<uint32_t> getSeparatorsList(const unsigned char* ptr);
|
|
27
|
void debugMap(const std::map<SegrulesOptions, SegrulesFSA*>& res);
|
|
28
|
|
|
29
|
}
|
|
30
31
|
#endif /* SEGRULES_HPP */
|