Dictionary.hpp
1.13 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
* File: Dictionary.hpp
* Author: lennyn
*
* Created on August 8, 2014, 3:15 PM
*/
#ifndef DICTIONARY_HPP
#define DICTIONARY_HPP
#include <string>
#include <vector>
#include <map>
#include <set>
#include "IdResolverImpl.hpp"
#include "fsa/fsa.hpp"
#include "segrules/segrules.hpp"
#include "const.hpp"
#include "deserialization/InterpsGroupsReader.hpp"
namespace morfeusz {
typedef FSA<InterpsGroupsReader> FSAType;
struct Dictionary {
Dictionary(const unsigned char* ptr, MorfeuszProcessorType processorType);
Dictionary();
bool isCompatibleWith(const Dictionary& other) const;
static Dictionary* getEmpty();
FSAType* fsa;
std::string id;
std::string copyright;
IdResolverImpl idResolver;
std::vector<uint32_t> separatorsList;
std::map<SegrulesOptions, SegrulesFSA*> segrulesFSAsMap;
SegrulesOptions defaultSegrulesOptions;
SegrulesFSA* defaultSegrulesFSA;
std::set<std::string> availableAgglOptions;
std::set<std::string> availablePraetOptions;
};
}
#endif /* DICTIONARY_HPP */