2 // Copyright © 2009 The University of Chicago
6 // See the cMT class in cMT.h for an overview of the Machine Translation code.
11 typedef QMap
<int, int> IntToInt
;
12 typedef QMap
<int, IntToInt
*> IntToIntToInt
;
13 typedef QMap
<int, double> IntToDouble
;
14 typedef QMap
<int, IntToDouble
*> IntToIntToDouble
;
19 QString m_projectDirectory
;
20 QString m_language1FileName
;
21 QString m_language2FileName
;
25 QMap
<QString
, int> m_language1Words
;
26 QMap
<QString
, int> m_language2Words
;
27 QMap
<int, QString
> m_language1WordIndex
;
28 QMap
<int, QString
> m_language2WordIndex
;
29 int m_language1TotalWords
;
30 int m_language2TotalWords
;
34 int m_countOfSentences
;
35 QMap
<int, QMap
<int, int>*> m_language1Sentences
;
36 QMap
<int, QMap
<int, int>*> m_language2Sentences
;
37 QMap
<int, QMap
<int, int>*> m_sentenceAlignments
;
41 QMap
<int, QMap
<int, double>*> m_fastWordsPairs
;
42 QMap
<int, QMap
<int, double>*> m_fastWordsSoftCounts
;
44 // construction/destruction.
46 mTVolca(cMT
* driver
, QString project_dir
);
49 // disable default-construction, copy
52 mTVolca(const mTVolca
& x
);
53 mTVolca
& operator=(const mTVolca
& x
);
57 void setFastSearchPairsForT();
58 void clearSentenceViterbiAlignment();