#ifndef MERT_TYPE_H_ #define MERT_TYPE_H_ #include #include #include #include namespace MosesTuning { class FeatureStats; class FeatureArray; class FeatureData; class ScoreStats; class ScoreArray; class ScoreData; typedef float parameter_t; //typedef std::vector parameters_t;confusing; use std::vector typedef std::vector > diff_t; typedef std::pair threshold; typedef std::vector diffs_t; typedef std::vector candidates_t; typedef float statscore_t; typedef std::vector statscores_t; typedef float FeatureStatsType; typedef FeatureStatsType* featstats_t; //typedef std::vector featstats_t; typedef std::vector featarray_t; typedef std::vector featdata_t; typedef float ScoreStatsType; typedef ScoreStatsType* scorestats_t; //typedef std::vector scorestats_t; typedef std::vector scorearray_t; typedef std::vector scoredata_t; typedef std::map idx2name; typedef std::map name2idx; typedef enum { HAMMING_DISTANCE=0, KENDALL_DISTANCE } distanceMetric_t; typedef enum { REFERENCE_CHOICE_AVERAGE=0, REFERENCE_CHOICE_CLOSEST } distanceMetricReferenceChoice_t; } #endif // MERT_TYPE_H_