|
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
|
/*
* 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);
|
|
27
|
|
|
28
29
|
Dictionary();
|
|
30
31
|
bool isCompatibleWith(const Dictionary& other) const;
|
|
32
33
|
static Dictionary* getEmpty();
|
|
34
|
FSAType* fsa;
|
|
35
36
|
std::string id;
std::string copyright;
|
|
37
|
IdResolverImpl idResolver;
|
|
38
39
40
|
std::vector<uint32_t> separatorsList;
std::map<SegrulesOptions, SegrulesFSA*> segrulesFSAsMap;
SegrulesOptions defaultSegrulesOptions;
|
|
41
|
SegrulesFSA* defaultSegrulesFSA;
|
|
42
43
44
45
46
47
48
|
std::set<std::string> availableAgglOptions;
std::set<std::string> availablePraetOptions;
};
}
#endif /* DICTIONARY_HPP */
|