mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-27 05:55:02 +03:00
47ac8a474d
This change might be useful to avoid duplicating the names. The reason is that although MERT programs are standalone applications, some header files such as data.h and point.h have common guard macro names like "DATA_H" and "POINT_H", and this is not good naming conventions when you want to include external headers. Some files actually include headers in Moses and KenLM's util.
44 lines
1.1 KiB
C++
44 lines
1.1 KiB
C++
#ifndef MERT_TYPE_H_
|
|
#define MERT_TYPE_H_
|
|
|
|
#include <vector>
|
|
#include <map>
|
|
#include <string>
|
|
|
|
using namespace std;
|
|
|
|
class FeatureStats;
|
|
class FeatureArray;
|
|
class FeatureData;
|
|
class ScoreStats;
|
|
class ScoreArray;
|
|
class ScoreData;
|
|
|
|
typedef float parameter_t;
|
|
//typedef vector<parameter_t> parameters_t;confusing; use vector<parameter_t>
|
|
typedef vector<pair<unsigned int, unsigned int> > diff_t;
|
|
typedef pair<float,diff_t > threshold;
|
|
typedef vector<diff_t> diffs_t;
|
|
typedef vector<unsigned int> candidates_t;
|
|
|
|
typedef float statscore_t;
|
|
typedef vector<statscore_t> statscores_t;
|
|
|
|
|
|
typedef float FeatureStatsType;
|
|
typedef FeatureStatsType* featstats_t;
|
|
//typedef vector<FeatureStatsType> featstats_t;
|
|
typedef vector<FeatureStats> featarray_t;
|
|
typedef vector<FeatureArray> featdata_t;
|
|
|
|
typedef int ScoreStatsType;
|
|
typedef ScoreStatsType* scorestats_t;
|
|
//typedef vector<ScoreStatsType> scorestats_t;
|
|
typedef vector<ScoreStats> scorearray_t;
|
|
typedef vector<ScoreArray> scoredata_t;
|
|
|
|
typedef map<size_t, std::string> idx2name;
|
|
typedef map<std::string, size_t> name2idx;
|
|
|
|
#endif // MERT_TYPE_H_
|