ddc
Predict.h
Go to the documentation of this file.
1 //
2 // This file is part of DDC.
3 //
4 // DDC is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Lesser General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // DDC is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Lesser General Public License for more details.
13 //
14 // You should have received a copy of the GNU Lesser General Public License
15 // along with DDC. If not, see <http://www.gnu.org/licenses/>.
16 //
17 // ========== Dialing Lemmatizer (www.aot.ru)
18 // ========== Copyright by Alexey Sokirko, Bryan Jurish (2011)
19 
20 #ifndef PREDICT_H
21 #define PREDICT_H
22 
23 
24 #pragma warning(disable:4786)
25 #include "../CommonLib/utilit.h"
26 #include "MorphAutomat.h"
27 
28 
31 {
35 };
36 
37 
40 {
42  void FindRecursive(int r, string& curr_path, vector<CPredictTuple>& Infos) const;
43 public:
45 
46 
48 
49  void Load (const string &path);
50  bool Find(const string &lettId, vector<CPredictTuple>& res) const;
51 };
52 
53 
54 
55 
56 
57 #endif
58 
59 /*--- emacs style variables ---
60  * Local Variables:
61  * mode: C++
62  * c-file-style: "ellemtel"
63  * c-basic-offset: 4
64  * tab-width: 8
65  * indent-tabs-mode: nil
66  * End:
67  */
vector< DWORD > DwordVector
Definition: utilit.h:148
Definition: Predict.h:39
DWORD m_LemmaInfoNo
Definition: Predict.h:33
uint16_t WORD
Definition: utilit.h:106
BYTE m_PartOfSpeechNo
Definition: Predict.h:34
Definition: Predict.h:30
unsigned char BYTE
Definition: utilit.h:94
CMorphAutomat m_SuffixAutomat
Definition: Predict.h:41
MorphLanguageEnum
Definition: utilit.h:162
Definition: MorphAutomat.h:139
WORD m_ItemNo
Definition: Predict.h:32
uint32_t DWORD
Definition: utilit.h:105
DwordVector m_ModelFreq
Definition: Predict.h:44