ddc
Statistic.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, Andrey Putrin, Bryan Jurish (2011)
19 
20 #ifndef morph_statistics_h
21 #define morph_statistics_h
22 
23 #include "../CommonLib/utilit.h"
24 
26 typedef pair<int, int> _statnode_t;
27 
28 class CStatistic
29 {
30  vector<_statnode_t> m_WordWeights;
31  vector<_homonode_t> m_HomoWeights;
32 public:
33  void Load(const string& path);
34  int get_HomoWeight(int paradigmid, int form) const;
35  int get_WordWeight(int paradigmid) const;
36 };
37 
38 #endif
39 
40 /*--- emacs style variables ---
41  * Local Variables:
42  * mode: C++
43  * c-file-style: "ellemtel"
44  * c-basic-offset: 4
45  * tab-width: 8
46  * indent-tabs-mode: nil
47  * End:
48  */
vector< _statnode_t > m_WordWeights
Definition: Statistic.h:30
troika< int, int, int > _homonode_t
Definition: Statistic.h:25
vector< _homonode_t > m_HomoWeights
Definition: Statistic.h:31
int get_WordWeight(int paradigmid) const
Definition: Statistic.cpp:73
int get_HomoWeight(int paradigmid, int form) const
Definition: Statistic.cpp:52
Definition: utilit.h:173
pair< int, int > _statnode_t
Definition: Statistic.h:26
Definition: Statistic.h:28
void Load(const string &path)
Definition: Statistic.cpp:35