00001 // ========== This file is under LGPL, the GNU Lesser General Public Licence 00002 // ========== Dialing Lemmatizer (www.aot.ru) 00003 // ========== Copyright by Alexey Sokirko, Andrey Putrin 00004 00005 #ifndef morph_statistics_h 00006 #define morph_statistics_h 00007 00008 #include "../common/utilit.h" 00009 00010 typedef troika<int, int, int> _homonode_t; 00011 typedef pair<int, int> _statnode_t; 00012 00013 class CStatistic 00014 { 00015 vector<_statnode_t> m_WordWeights; 00016 vector<_homonode_t> m_HomoWeights; 00017 public: 00018 void Load(const string& path); 00019 int get_HomoWeight(int paradigmid, int form) const; 00020 int get_WordWeight(int paradigmid) const; 00021 }; 00022 00023 #endif