CMiniLexicon::FindMajorSignatures(): use log file routines
[linguistica.git] / cMTModel1.h
blobfaf4952578f168d01f39dd6e86fb96856f5fa6f8
1 // Machine Translation model 1
2 // Copyright © 2009 The University of Chicago
3 #ifndef CMTMODEL1_H
4 #define CMTMODEL1_H
6 #include <QMap>
8 class mTVolca;
9 typedef QMap<int, double> IntToDouble;
10 typedef QMap<int, IntToDouble*> IntToIntToDouble;
12 class cMTModel1 {
13 public:
14 class cMT* m_myMT;
15 int m_Iterations;
17 // alignment parameters.
19 QMap<int, QMap<int, double>*> m_T;
20 QMap<int, QMap<int, double>*> m_softCountOfT;
21 QMap<int, double> m_lamdaT;
22 public:
23 // construction/destruction.
25 cMTModel1(cMT* driver, int iterations);
26 virtual ~cMTModel1();
28 // disable default-construction, copy
29 private:
30 cMTModel1();
31 cMTModel1(const cMTModel1& x);
32 cMTModel1& operator=(const cMTModel1& x);
33 public:
34 void initT();
35 void addSoftCountOfT(int);
36 void EMLoops(int);
37 void clearSoftCounts();
38 void EStep();
39 void MStep();
40 void releaseSoftCounts();
43 #endif // CMTMODEL1_H